home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / FinderHelper / OneClick 2.0 PR3 for MacHack CD / OneClick Folder / OneClick Help / OneClick Help.rsrc
MacOS Resource Fork  |  1999-05-04  |  285.7 KB  |  [BHlp/ABd1]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Resource Fork (archive/rsrc).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
66% TrID Mac AppleDouble encoded default
33% TrID TTComp archive compressed (bin-2K) default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default


id metadata
keyvalue
macFileType[BHlp]
macFileCreator[ABd1]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 04 |.2... ..|.....R..|
|00000030| 76 79 42 48 6c 70 41 42 | 64 31 01 00 00 00 00 00 |vyBHlpAB|d1......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 04 | 66 7f 00 04 65 7f 00 00 |........|f...e...|
|00000060| 0f fa 00 3a 46 6f 6c 64 | 65 72 3a 20 20 20 20 20 |...:Fold|er: |
|00000070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000080| 20 20 0d 4f 6e 65 43 6c | 69 63 6b 20 48 65 6c 70 | .OneCl|ick Help|
|00000090| 76 65 20 c4 6e 69 70 73 | 62 31 31 65 77 72 66 2d |ve .nips|b11ewrf-|
|000000a0| 34 20 00 06 62 7a 79 20 | 4d 41 43 53 01 00 00 00 |4 ..bzy |MACS....|
|000000b0| 01 01 00 00 00 00 00 00 | 00 00 00 00 80 00 00 00 |........|........|
|000000c0| 00 00 00 00 b3 54 5c 92 | 00 00 00 00 00 04 76 79 |.....T\.|......vy|
|000000d0| 00 00 02 40 0a e7 03 f1 | 00 4c 00 3a 46 6f 6c 64 |...@....|.L.:Fold|
|000000e0| 65 72 3a 41 70 70 65 61 | 72 61 6e 63 65 3a 20 20 |er:Appea|rance: |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 38 2e 35 0a 01 7c | ff f7 00 06 00 00 00 03 | 8.5..||........|
|00000120| 00 00 02 20 0a e8 03 f1 | 20 20 00 2a 64 74 70 c4 |... ....| .*dtp.|
|00000130| 20 20 48 44 3a 53 79 73 | 74 65 6d 20 46 6f 6c 64 | HD:Sys|tem Fold|
|00000140| 65 72 3a 41 70 70 65 61 | 72 61 6e 63 65 3a 44 65 |er:Appea|rance:De|
|00000150| 73 6b 00 00 00 b0 41 62 | 73 6f 6c 75 74 65 20 66 |sk....Ab|solute f|
|00000160| 75 6e 63 74 69 6f 6e 0d | 0d 53 79 6e 74 61 78 0d |unction.|.Syntax.|
|00000170| 41 62 73 6f 6c 75 74 65 | 20 6e 75 6d 62 65 72 0d |Absolute| number.|
|00000180| 0d 44 65 73 63 72 69 70 | 74 69 6f 6e 0d 52 65 74 |.Descrip|tion.Ret|
|00000190| 75 72 6e 73 20 74 68 65 | 20 61 62 73 6f 6c 75 74 |urns the| absolut|
|000001a0| 65 20 76 61 6c 75 65 20 | 6f 66 20 6e 75 6d 62 65 |e value |of numbe|
|000001b0| 72 2e 0d 0d 45 78 61 6d | 70 6c 65 73 0d 2f 2f 20 |r...Exam|ples.// |
|000001c0| 45 61 63 68 20 73 74 61 | 74 65 6d 65 6e 74 20 74 |Each sta|tement t|
|000001d0| 79 70 65 73 20 74 68 65 | 20 76 61 6c 75 65 20 32 |ypes the| value 2|
|000001e0| 35 0d 54 79 70 65 20 41 | 62 73 6f 6c 75 74 65 20 |5.Type A|bsolute |
|000001f0| d0 32 35 0d 54 79 70 65 | 20 41 62 73 6f 6c 75 74 |.25.Type| Absolut|
|00000200| 65 20 32 35 0d 0d 00 00 | 00 ca 00 0a 00 00 00 00 |e 25....|........|
|00000210| 00 0f 00 0a 07 d2 00 9c | 00 0c 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 13 00 0c 00 08 | 00 03 01 9c 00 09 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 1a | 00 0c 00 08 00 03 00 9c |........|........|
|00000240| 00 09 00 00 00 00 00 00 | 00 00 00 23 00 0c 00 08 |........|...#....|
|00000250| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 00 2b |........|.......+|
|00000260| 00 0c 00 08 00 03 01 9c | 00 09 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 37 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |...7....|........|
|00000280| 00 00 00 00 00 00 00 55 | 00 0c 00 08 00 03 02 9c |.......U|........|
|00000290| 00 09 00 00 00 00 00 00 | 00 00 00 5b 00 0c 00 08 |........|...[....|
|000002a0| 00 03 00 9c 00 09 00 00 | 00 00 00 00 00 00 00 5e |........|.......^|
|000002b0| 00 0c 00 08 00 03 01 9c | 00 09 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 67 00 0c 00 08 | 00 03 00 9c 00 09 00 00 |...g....|........|
|000002d0| 00 00 00 00 00 00 04 c9 | 41 6c 69 61 73 20 66 75 |........|Alias fu|
|000002e0| 6e 63 74 69 6f 6e 0d 0d | 53 79 6e 74 61 78 0d 41 |nction..|Syntax.A|
|000002f0| 6c 69 61 73 20 70 61 74 | 68 0d 0d 44 65 73 63 72 |lias pat|h..Descr|
|00000300| 69 70 74 69 6f 6e 0d 52 | 65 74 75 72 6e 73 20 61 |iption.R|eturns a|
|00000310| 6e 20 61 6c 69 61 73 20 | 66 6f 72 20 74 68 65 20 |n alias |for the |
|00000320| 73 70 65 63 69 66 69 65 | 64 20 66 69 6c 65 20 6f |specifie|d file o|
|00000330| 72 20 66 6f 6c 64 65 72 | 2c 20 66 6f 72 6d 61 74 |r folder|, format|
|00000340| 74 65 64 20 61 73 20 61 | 20 73 74 72 69 6e 67 2e |ted as a| string.|
|00000350| 20 54 68 65 20 61 6c 69 | 61 73 20 73 74 72 69 6e | The ali|as strin|
|00000360| 67 20 63 61 6e 20 62 65 | 20 73 74 6f 72 65 64 20 |g can be| stored |
|00000370| 66 6f 72 20 6c 61 74 65 | 72 20 75 73 65 20 61 6e |for late|r use an|
|00000380| 64 20 63 61 6e 20 6c 6f | 63 61 74 65 20 74 68 65 |d can lo|cate the|
|00000390| 20 66 69 6c 65 20 69 74 | 20 72 65 70 72 65 73 65 | file it| represe|
|000003a0| 6e 74 73 20 65 76 65 6e | 20 69 66 20 74 68 65 20 |nts even| if the |
|000003b0| 66 69 6c 65 20 69 73 20 | 6d 6f 76 65 64 20 6f 72 |file is |moved or|
|000003c0| 20 72 65 6e 61 6d 65 64 | 2e 20 54 68 65 20 61 6c | renamed|. The al|
|000003d0| 69 61 73 20 73 74 72 69 | 6e 67 20 63 61 6e 20 62 |ias stri|ng can b|
|000003e0| 65 20 70 61 73 73 65 64 | 20 74 6f 20 61 6e 79 20 |e passed| to any |
|000003f0| 63 6f 6d 6d 61 6e 64 2c | 20 66 75 6e 63 74 69 6f |command,| functio|
|00000400| 6e 2c 20 6f 72 20 6f 62 | 6a 65 63 74 20 74 68 61 |n, or ob|ject tha|
|00000410| 74 20 65 78 70 65 63 74 | 73 20 61 20 66 69 6c 65 |t expect|s a file|
|00000420| 20 70 61 74 68 20 61 73 | 20 61 20 70 61 72 61 6d | path as| a param|
|00000430| 65 74 65 72 2c 20 73 75 | 63 68 20 61 73 20 4f 70 |eter, su|ch as Op|
|00000440| 65 6e 20 61 6e 64 20 74 | 68 65 20 46 69 6c 65 20 |en and t|he File |
|00000450| 6f 62 6a 65 63 74 2e 20 | 0d 0d 59 6f 75 20 63 61 |object. |..You ca|
|00000460| 6e 20 61 6c 73 6f 20 75 | 73 65 20 61 6e 20 61 6c |n also u|se an al|
|00000470| 69 61 73 20 73 74 72 69 | 6e 67 20 74 6f 20 73 65 |ias stri|ng to se|
|00000480| 6e 64 20 61 6e 20 61 6c | 69 61 73 20 69 6e 20 61 |nd an al|ias in a|
|00000490| 6e 20 41 70 70 6c 65 20 | 65 76 65 6e 74 20 74 6f |n Apple |event to|
|000004a0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 74 68 | applica|tions th|
|000004b0| 61 74 20 72 65 71 75 69 | 72 65 20 61 6c 69 61 73 |at requi|re alias|
|000004c0| 20 70 61 72 61 6d 65 74 | 65 72 73 2e 20 54 68 65 | paramet|ers. The|
|000004d0| 20 66 75 6e 63 74 69 6f | 6e 20 66 6f 72 6d 61 74 | functio|n format|
|000004e0| 73 20 74 68 65 20 61 6c | 69 61 73 20 73 74 72 69 |s the al|ias stri|
|000004f0| 6e 67 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 66 |ng in th|e same f|
|00000500| 6f 72 6d 61 74 20 72 65 | 71 75 69 72 65 64 20 62 |ormat re|quired b|
|00000510| 79 20 74 68 65 20 50 72 | 6f 63 65 73 73 2e 53 65 |y the Pr|ocess.Se|
|00000520| 6e 64 41 45 20 6d 65 73 | 73 61 67 65 2e 0d 0d 45 |ndAE mes|sage...E|
|00000530| 78 61 6d 70 6c 65 0d 4f | 6e 20 44 72 61 67 41 6e |xample.O|n DragAn|
|00000540| 64 44 72 6f 70 0d 20 20 | 20 20 20 2f 2f 20 53 74 |dDrop. | // St|
|00000550| 6f 72 65 20 61 6e 20 61 | 6c 69 61 73 20 74 6f 20 |ore an a|lias to |
|00000560| 74 68 65 20 64 72 6f 70 | 70 65 64 20 66 69 6c 65 |the drop|ped file|
|00000570| 20 69 6e 20 61 20 73 74 | 61 74 69 63 20 76 61 72 | in a st|atic var|
|00000580| 69 61 62 6c 65 0d 20 20 | 20 20 20 56 61 72 69 61 |iable. | Varia|
|00000590| 62 6c 65 20 53 74 61 74 | 69 63 20 74 68 65 41 6c |ble Stat|ic theAl|
|000005a0| 69 61 73 0d 20 20 20 20 | 20 74 68 65 41 6c 69 61 |ias. | theAlia|
|000005b0| 73 20 3d 20 41 6c 69 61 | 73 20 47 65 74 44 72 61 |s = Alia|s GetDra|
|000005c0| 67 41 6e 64 44 72 6f 70 | 20 31 0d 45 6e 64 20 44 |gAndDrop| 1.End D|
|000005d0| 72 61 67 41 6e 64 44 72 | 6f 70 0d 4f 6e 20 4d 6f |ragAndDr|op.On Mo|
|000005e0| 75 73 65 55 70 0d 20 20 | 20 20 20 56 61 72 69 61 |useUp. | Varia|
|000005f0| 62 6c 65 20 53 74 61 74 | 69 63 20 74 68 65 41 6c |ble Stat|ic theAl|
|00000600| 69 61 73 0d 20 20 20 20 | 20 49 66 20 4f 70 74 69 |ias. | If Opti|
|00000610| 6f 6e 4b 65 79 0d 20 20 | 20 20 20 2f 2f 20 44 69 |onKey. | // Di|
|00000620| 73 70 6c 61 79 20 74 68 | 65 20 70 61 74 68 20 74 |splay th|e path t|
|00000630| 6f 20 74 68 65 20 61 6c | 69 61 73 d5 20 70 61 72 |o the al|ias. par|
|00000640| 65 6e 74 0d 20 20 20 20 | 20 20 20 20 20 20 4d 65 |ent. | Me|
|00000650| 73 73 61 67 65 20 46 69 | 6c 65 28 74 68 65 41 6c |ssage Fi|le(theAl|
|00000660| 69 61 73 29 2e 4f 72 69 | 67 69 6e 61 6c 0d 20 20 |ias).Ori|ginal. |
|00000670| 20 20 20 45 6c 73 65 20 | 49 66 20 43 6f 6d 6d 61 | Else |If Comma|
|00000680| 6e 64 4b 65 79 0d 20 20 | 20 20 20 2f 2f 20 44 69 |ndKey. | // Di|
|00000690| 73 70 6c 61 79 20 74 68 | 65 20 61 6c 69 61 73 20 |splay th|e alias |
|000006a0| 73 74 72 69 6e 67 2c 20 | 6a 75 73 74 20 66 6f 72 |string, |just for|
|000006b0| 20 66 75 6e 0d 20 20 20 | 20 20 20 20 20 20 20 4d | fun. | M|
|000006c0| 65 73 73 61 67 65 20 74 | 68 65 41 6c 69 61 73 0d |essage t|heAlias.|
|000006d0| 20 20 20 20 20 45 6c 73 | 65 20 0d 20 20 20 20 20 | Els|e . |
|000006e0| 2f 2f 20 4f 70 65 6e 20 | 74 68 65 20 66 69 6c 65 |// Open |the file|
|000006f0| 20 70 6f 69 6e 74 65 64 | 20 74 6f 20 62 79 20 74 | pointed| to by t|
|00000700| 68 65 20 61 6c 69 61 73 | 0d 20 20 20 20 20 2f 2f |he alias|. //|
|00000710| 20 53 74 69 6c 6c 20 77 | 6f 72 6b 73 20 65 76 65 | Still w|orks eve|
|00000720| 6e 20 69 66 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |n if the| origina|
|00000730| 6c 20 66 69 6c 65 20 69 | 73 20 6d 6f 76 65 64 20 |l file i|s moved |
|00000740| 6f 72 20 72 65 6e 61 6d | 65 64 0d 20 20 20 20 20 |or renam|ed. |
|00000750| 20 20 20 20 20 4f 70 65 | 6e 20 74 68 65 41 6c 69 | Ope|n theAli|
|00000760| 61 73 0d 20 20 20 20 20 | 45 6e 64 20 49 66 20 0d |as. |End If .|
|00000770| 45 6e 64 20 4d 6f 75 73 | 65 55 70 0d 0d 53 65 65 |End Mous|eUp..See|
|00000780| 20 41 6c 73 6f 0d 4f 70 | 65 6e 20 63 6f 6d 6d 61 | Also.Op|en comma|
|00000790| 6e 64 2c 20 46 69 6c 65 | 20 6f 62 6a 65 63 74 0d |nd, File| object.|
|000007a0| 0d 00 00 00 ca 00 0a 00 | 00 00 00 00 0f 00 0a 07 |........|........|
|000007b0| d2 00 9c 00 0c 00 00 00 | 00 00 00 00 00 00 10 00 |........|........|
|000007c0| 0c 00 08 00 03 01 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 17 00 0c 00 08 00 | 03 00 9c 00 09 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 1d 00 | 0c 00 08 00 03 02 9c 00 |........|........|
|000007f0| 09 00 00 00 00 00 00 00 | 00 00 23 00 0c 00 08 00 |........|..#.....|
|00000800| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 00 2f 00 |........|....../.|
|00000810| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00000820| 00 02 57 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |..W.....|........|
|00000830| 00 00 00 00 00 02 5f 00 | 0c 00 08 00 03 00 9c 00 |......_.|........|
|00000840| 09 00 00 00 00 00 00 00 | 00 04 a5 00 0c 00 08 00 |........|........|
|00000850| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 04 ae 00 |........|........|
|00000860| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00000870| 00 07 03 41 70 70 6c 65 | 53 63 72 69 70 74 20 63 |...Apple|Script c|
|00000880| 6f 6d 6d 61 6e 64 0d 0d | 53 79 6e 74 61 78 0d 41 |ommand..|Syntax.A|
|00000890| 70 70 6c 65 53 63 72 69 | 70 74 20 63 6f 6d 70 69 |ppleScri|pt compi|
|000008a0| 6c 65 64 2d 73 63 72 69 | 70 74 2d 66 69 6c 65 0d |led-scri|pt-file.|
|000008b0| 0d 41 70 70 6c 65 53 63 | 72 69 70 74 0d 20 20 20 |.AppleSc|ript. |
|000008c0| 20 20 61 70 70 6c 65 73 | 63 72 69 70 74 2d 73 74 | apples|cript-st|
|000008d0| 61 74 65 6d 65 6e 74 73 | 0d 45 6e 64 20 41 70 70 |atements|.End App|
|000008e0| 6c 65 53 63 72 69 70 74 | 0d 0d 44 65 73 63 72 69 |leScript|..Descri|
|000008f0| 70 74 69 6f 6e 0d 52 75 | 6e 73 20 61 20 63 6f 6d |ption.Ru|ns a com|
|00000900| 70 69 6c 65 64 20 41 70 | 70 6c 65 53 63 72 69 70 |piled Ap|pleScrip|
|00000910| 74 20 73 63 72 69 70 74 | 20 66 69 6c 65 2c 20 6f |t script| file, o|
|00000920| 72 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 65 20 |r indica|tes the |
|00000930| 62 65 67 69 6e 6e 69 6e | 67 20 61 6e 64 20 65 6e |beginnin|g and en|
|00000940| 64 20 6f 66 20 41 70 70 | 6c 65 53 63 72 69 70 74 |d of App|leScript|
|00000950| 20 63 6f 64 65 2e 20 0d | 0d 43 6f 6d 70 69 6c 65 | code. .|.Compile|
|00000960| 64 2d 73 63 72 69 70 74 | 20 69 73 20 61 20 70 61 |d-script| is a pa|
|00000970| 74 68 20 74 6f 20 61 20 | 63 6f 6d 70 69 6c 65 64 |th to a |compiled|
|00000980| 20 41 70 70 6c 65 53 63 | 72 69 70 74 20 73 63 72 | AppleSc|ript scr|
|00000990| 69 70 74 2e 20 49 66 20 | 79 6f 75 d5 76 65 20 77 |ipt. If |you.ve w|
|000009a0| 72 69 74 74 65 6e 20 61 | 6e 64 20 63 6f 6d 70 69 |ritten a|nd compi|
|000009b0| 6c 65 64 20 61 20 73 63 | 72 69 70 74 20 75 73 69 |led a sc|ript usi|
|000009c0| 6e 67 20 41 70 70 6c 65 | d5 73 20 53 63 72 69 70 |ng Apple|.s Scrip|
|000009d0| 74 20 45 64 69 74 6f 72 | 2c 20 75 73 65 20 74 68 |t Editor|, use th|
|000009e0| 65 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 63 6f |e AppleS|cript co|
|000009f0| 6d 6d 61 6e 64 20 74 6f | 20 72 75 6e 20 74 68 65 |mmand to| run the|
|00000a00| 20 63 6f 6d 70 69 6c 65 | 64 20 73 63 72 69 70 74 | compile|d script|
|00000a10| 2e 0d 0d 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |...You c|an also |
|00000a20| 75 73 65 20 74 68 65 20 | 41 70 70 6c 65 53 63 72 |use the |AppleScr|
|00000a30| 69 70 74 20 63 6f 6d 6d | 61 6e 64 20 74 6f 20 65 |ipt comm|and to e|
|00000a40| 6d 62 65 64 20 41 70 70 | 6c 65 53 63 72 69 70 74 |mbed App|leScript|
|00000a50| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 77 69 74 68 | stateme|nts with|
|00000a60| 69 6e 20 61 6e 20 45 61 | 73 79 53 63 72 69 70 74 |in an Ea|syScript|
|00000a70| 20 73 63 72 69 70 74 2e | 20 50 75 74 20 74 68 65 | script.| Put the|
|00000a80| 20 41 70 70 6c 65 53 63 | 72 69 70 74 20 73 74 61 | AppleSc|ript sta|
|00000a90| 74 65 6d 65 6e 74 73 20 | 62 65 74 77 65 65 6e 20 |tements |between |
|00000aa0| 74 68 65 20 41 70 70 6c | 65 53 63 72 69 70 74 20 |the Appl|eScript |
|00000ab0| 61 6e 64 20 45 6e 64 20 | 41 70 70 6c 65 53 63 72 |and End |AppleScr|
|00000ac0| 69 70 74 20 63 6f 6d 6d | 61 6e 64 73 2e 20 57 68 |ipt comm|ands. Wh|
|00000ad0| 65 6e 20 79 6f 75 20 73 | 61 76 65 20 74 68 65 20 |en you s|ave the |
|00000ae0| 62 75 74 74 6f 6e d5 73 | 20 73 63 72 69 70 74 2c |button.s| script,|
|00000af0| 20 4f 6e 65 43 6c 69 63 | 6b 20 74 65 6c 6c 73 20 | OneClic|k tells |
|00000b00| 74 68 65 20 41 70 70 6c | 65 53 63 72 69 70 74 20 |the Appl|eScript |
|00000b10| 65 78 74 65 6e 73 69 6f | 6e 20 74 6f 20 63 6f 6d |extensio|n to com|
|00000b20| 70 69 6c 65 20 74 68 65 | 20 65 6d 62 65 64 64 65 |pile the| embedde|
|00000b30| 64 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 63 6f |d AppleS|cript co|
|00000b40| 64 65 2e 20 43 6f 6d 70 | 69 6c 69 6e 67 20 41 70 |de. Comp|iling Ap|
|00000b50| 70 6c 65 53 63 72 69 70 | 74 20 63 6f 64 65 20 6d |pleScrip|t code m|
|00000b60| 61 79 20 74 61 6b 65 20 | 61 20 66 65 77 20 6d 6f |ay take |a few mo|
|00000b70| 6d 65 6e 74 73 2c 20 63 | 6f 6d 70 61 72 65 64 20 |ments, c|ompared |
|00000b80| 74 6f 20 74 68 65 20 6e | 65 61 72 2d 69 6e 73 74 |to the n|ear-inst|
|00000b90| 61 6e 74 61 6e 65 6f 75 | 73 20 63 6f 6d 70 69 6c |antaneou|s compil|
|00000ba0| 69 6e 67 20 6f 66 20 45 | 61 73 79 53 63 72 69 70 |ing of E|asyScrip|
|00000bb0| 74 20 63 6f 64 65 2e 0d | 0d 41 70 70 6c 65 53 63 |t code..|.AppleSc|
|00000bc0| 72 69 70 74 20 73 63 72 | 69 70 74 73 20 74 68 61 |ript scr|ipts tha|
|00000bd0| 74 20 63 68 61 6e 67 65 | 20 61 6e 79 20 70 72 6f |t change| any pro|
|00000be0| 70 65 72 74 69 65 73 20 | 77 69 74 68 69 6e 20 74 |perties |within t|
|00000bf0| 68 65 20 73 63 72 69 70 | 74 20 67 65 74 20 75 70 |he scrip|t get up|
|00000c00| 64 61 74 65 64 20 77 69 | 74 68 20 74 68 65 20 6e |dated wi|th the n|
|00000c10| 65 77 20 70 72 6f 70 65 | 72 74 69 65 73 20 6f 6e |ew prope|rties on|
|00000c20| 6c 79 20 69 66 20 74 68 | 65 20 73 63 72 69 70 74 |ly if th|e script|
|00000c30| 20 69 73 20 69 6e 20 61 | 20 63 6f 6d 70 69 6c 65 | is in a| compile|
|00000c40| 64 20 73 63 72 69 70 74 | 20 66 69 6c 65 2e 20 41 |d script| file. A|
|00000c50| 70 70 6c 65 53 63 72 69 | 70 74 73 20 65 6d 62 65 |ppleScri|pts embe|
|00000c60| 64 64 65 64 20 77 69 74 | 68 69 6e 20 45 61 73 79 |dded wit|hin Easy|
|00000c70| 53 63 72 69 70 74 20 73 | 63 72 69 70 74 73 20 64 |Script s|cripts d|
|00000c80| 6f 20 6e 6f 74 20 67 65 | 74 20 74 68 65 69 72 20 |o not ge|t their |
|00000c90| 70 72 6f 70 65 72 74 69 | 65 73 20 75 70 64 61 74 |properti|es updat|
|00000ca0| 65 64 2e 0d 0d 59 6f 75 | 20 6d 75 73 74 20 68 61 |ed...You| must ha|
|00000cb0| 76 65 20 74 68 65 20 41 | 70 70 6c 65 53 63 72 69 |ve the A|ppleScri|
|00000cc0| 70 74 20 73 6f 66 74 77 | 61 72 65 20 69 6e 73 74 |pt softw|are inst|
|00000cd0| 61 6c 6c 65 64 20 74 6f | 20 75 73 65 20 74 68 69 |alled to| use thi|
|00000ce0| 73 20 63 6f 6d 6d 61 6e | 64 2e 20 41 70 70 6c 65 |s comman|d. Apple|
|00000cf0| 53 63 72 69 70 74 20 69 | 73 20 69 6e 63 6c 75 64 |Script i|s includ|
|00000d00| 65 64 20 69 6e 20 4d 61 | 63 20 4f 53 20 37 2e 35 |ed in Ma|c OS 7.5|
|00000d10| 20 61 6e 64 20 6c 61 74 | 65 72 2e 0d 0d 46 6f 72 | and lat|er...For|
|00000d20| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00000d30| 6e 20 6f 6e 20 69 6e 74 | 65 67 72 61 74 69 6e 67 |n on int|egrating|
|00000d40| 20 41 70 70 6c 65 53 63 | 72 69 70 74 20 77 69 74 | AppleSc|ript wit|
|00000d50| 68 20 45 61 73 79 53 63 | 72 69 70 74 2c 20 69 6e |h EasySc|ript, in|
|00000d60| 63 6c 75 64 69 6e 67 20 | 68 6f 77 20 74 6f 20 73 |cluding |how to s|
|00000d70| 68 61 72 65 20 64 61 74 | 61 20 62 65 74 77 65 65 |hare dat|a betwee|
|00000d80| 6e 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 73 20 61 |n enviro|nments a|
|00000d90| 6e 64 20 68 6f 77 20 74 | 6f 20 65 6d 62 65 64 20 |nd how t|o embed |
|00000da0| 45 61 73 79 53 63 72 69 | 70 74 20 77 69 74 68 69 |EasyScri|pt withi|
|00000db0| 6e 20 41 70 70 6c 65 53 | 63 72 69 70 74 20 61 70 |n AppleS|cript ap|
|00000dc0| 70 6c 65 74 73 20 6f 72 | 20 63 6f 6d 70 69 6c 65 |plets or| compile|
|00000dd0| 64 20 73 63 72 69 70 74 | 73 2c 20 73 65 65 20 41 |d script|s, see A|
|00000de0| 70 70 65 6e 64 69 78 20 | 42 2c 20 d2 49 6e 74 65 |ppendix |B, .Inte|
|00000df0| 67 72 61 74 69 6f 6e 20 | 77 69 74 68 20 41 70 70 |gration |with App|
|00000e00| 6c 65 53 63 72 69 70 74 | d3 2e 0d 0d 45 78 61 6d |leScript|....Exam|
|00000e10| 70 6c 65 73 0d 2f 2f 20 | 52 75 6e 20 74 68 65 20 |ples.// |Run the |
|00000e20| 53 74 61 72 74 20 46 69 | 6c 65 20 53 68 61 72 69 |Start Fi|le Shari|
|00000e30| 6e 67 20 73 63 72 69 70 | 74 20 69 6e 63 6c 75 64 |ng scrip|t includ|
|00000e40| 65 64 20 77 69 74 68 20 | 4d 61 63 20 4f 53 20 37 |ed with |Mac OS 7|
|00000e50| 2e 35 2e 0d 41 70 70 6c | 65 53 63 72 69 70 74 20 |.5..Appl|eScript |
|00000e60| 22 4d 61 63 20 48 44 3a | 41 75 74 6f 6d 61 74 65 |"Mac HD:|Automate|
|00000e70| 64 20 54 61 73 6b 73 3a | 53 74 61 72 74 20 46 69 |d Tasks:|Start Fi|
|00000e80| 6c 65 20 53 68 61 72 69 | 6e 67 22 0d 0d 2f 2f 20 |le Shari|ng"..// |
|00000e90| 4f 70 65 6e 20 74 68 65 | 20 46 69 6e 64 65 72 d5 |Open the| Finder.|
|00000ea0| 73 20 22 41 62 6f 75 74 | 20 54 68 69 73 20 4d 61 |s "About| This Ma|
|00000eb0| 63 69 6e 74 6f 73 68 22 | 20 77 69 6e 64 6f 77 2e |cintosh"| window.|
|00000ec0| 0d 41 70 70 6c 65 53 63 | 72 69 70 74 0d 20 20 20 |.AppleSc|ript. |
|00000ed0| 20 20 74 65 6c 6c 20 61 | 70 70 6c 69 63 61 74 69 | tell a|pplicati|
|00000ee0| 6f 6e 20 22 46 69 6e 64 | 65 72 22 0d 20 20 20 20 |on "Find|er". |
|00000ef0| 20 20 20 20 20 20 61 63 | 74 69 76 61 74 65 0d 20 | ac|tivate. |
|00000f00| 20 20 20 20 20 20 20 20 | 20 6f 70 65 6e 20 61 62 | | open ab|
|00000f10| 6f 75 74 20 74 68 69 73 | 20 63 6f 6d 70 75 74 65 |out this| compute|
|00000f20| 72 0d 20 20 20 20 20 65 | 6e 64 20 74 65 6c 6c 0d |r. e|nd tell.|
|00000f30| 45 6e 64 20 41 70 70 6c | 65 53 63 72 69 70 74 0d |End Appl|eScript.|
|00000f40| 0d 53 65 65 20 41 6c 73 | 6f 0d 41 70 70 65 6e 64 |.See Als|o.Append|
|00000f50| 69 78 20 42 2c 20 d2 49 | 6e 74 65 67 72 61 74 69 |ix B, .I|ntegrati|
|00000f60| 6f 6e 20 77 69 74 68 20 | 41 70 70 6c 65 53 63 72 |on with |AppleScr|
|00000f70| 69 70 74 d3 0d 0d 00 00 | 01 2e 00 0f 00 00 00 00 |ipt.....|........|
|00000f80| 00 0f 00 0a 07 d2 00 9c | 00 0c 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 15 00 0c 00 08 | 00 03 01 9c 00 09 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 1c | 00 0c 00 08 00 03 00 9c |........|........|
|00000fb0| 00 09 00 00 00 00 00 00 | 00 00 00 28 00 0c 00 08 |........|...(....|
|00000fc0| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 00 3e |........|.......>|
|00000fd0| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 4a 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |...J....|........|
|00000ff0| 00 00 00 00 00 00 00 66 | 00 0c 00 08 00 03 00 9c |.......f|........|
|00001000| 00 09 00 00 00 00 00 00 | 00 00 00 77 00 0c 00 08 |........|...w....|
|00001010| 00 03 01 9c 00 09 00 00 | 00 00 00 00 00 00 00 83 |........|........|
|00001020| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 e6 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 f5 | 00 0c 00 08 00 03 00 9c |........|........|
|00001050| 00 09 00 00 00 00 00 00 | 00 00 05 99 00 0c 00 08 |........|........|
|00001060| 00 03 01 9c 00 09 00 00 | 00 00 00 00 00 00 05 a2 |........|........|
|00001070| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00001080| 00 00 06 ce 00 0c 00 08 | 00 03 01 9c 00 09 00 00 |........|........|
|00001090| 00 00 00 00 00 00 06 d7 | 00 0c 00 08 00 03 00 9c |........|........|
|000010a0| 00 09 00 00 00 00 00 00 | 00 00 02 e0 41 73 6b 42 |........|....AskB|
|000010b0| 75 74 74 6f 6e 20 66 75 | 6e 63 74 69 6f 6e 0d 0d |utton fu|nction..|
|000010c0| 53 79 6e 74 61 78 0d 41 | 73 6b 42 75 74 74 6f 6e |Syntax.A|skButton|
|000010d0| 20 5b 70 72 6f 6d 70 74 | 5d 20 5b 2c 20 62 75 74 | [prompt|] [, but|
|000010e0| 74 6f 6e 2d 6c 69 73 74 | 5d 20 7c 20 5b 2c 20 62 |ton-list|] | [, b|
|000010f0| 75 74 74 6f 6e 31 20 5b | 2c 20 62 75 74 74 6f 6e |utton1 [|, button|
|00001100| 32 c9 5d 5d 0d 0d 44 65 | 73 63 72 69 70 74 69 6f |2.]]..De|scriptio|
|00001110| 6e 0d 44 69 73 70 6c 61 | 79 73 20 61 20 64 69 61 |n.Displa|ys a dia|
|00001120| 6c 6f 67 20 62 6f 78 20 | 77 69 74 68 20 74 68 65 |log box |with the|
|00001130| 20 73 70 65 63 69 66 69 | 65 64 20 70 72 6f 6d 70 | specifi|ed promp|
|00001140| 74 20 6d 65 73 73 61 67 | 65 20 61 6e 64 20 6c 65 |t messag|e and le|
|00001150| 74 73 20 79 6f 75 20 63 | 6c 69 63 6b 20 6f 6e 65 |ts you c|lick one|
|00001160| 20 6f 66 20 75 70 20 74 | 6f 20 65 69 67 68 74 20 | of up t|o eight |
|00001170| 62 75 74 74 6f 6e 73 2e | 20 49 66 20 79 6f 75 20 |buttons.| If you |
|00001180| 64 6f 6e d5 74 20 73 70 | 65 63 69 66 79 20 61 6e |don.t sp|ecify an|
|00001190| 79 20 62 75 74 74 6f 6e | 73 2c 20 74 68 65 20 64 |y button|s, the d|
|000011a0| 69 61 6c 6f 67 20 62 6f | 78 20 68 61 73 20 61 20 |ialog bo|x has a |
|000011b0| 73 69 6e 67 6c 65 20 4f | 4b 20 62 75 74 74 6f 6e |single O|K button|
|000011c0| 2e 20 54 68 65 20 41 73 | 6b 42 75 74 74 6f 6e 20 |. The As|kButton |
|000011d0| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|000011e0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 28 31 d0 38 | the num|ber (1.8|
|000011f0| 29 20 6f 66 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |) of the| button |
|00001200| 63 6c 69 63 6b 65 64 2e | 0d 0d 42 75 74 74 6f 6e |clicked.|..Button|
|00001210| 20 6e 61 6d 65 73 20 63 | 61 6e 20 65 69 74 68 65 | names c|an eithe|
|00001220| 72 20 62 65 20 70 61 73 | 73 65 64 20 69 6e 20 6f |r be pas|sed in o|
|00001230| 6e 65 20 70 61 72 61 6d | 65 74 65 72 20 61 73 20 |ne param|eter as |
|00001240| 61 20 6c 69 73 74 2c 20 | 6f 72 20 61 73 20 73 65 |a list, |or as se|
|00001250| 70 61 72 61 74 65 20 70 | 61 72 61 6d 65 74 65 72 |parate p|arameter|
|00001260| 73 2c 20 6f 6e 65 20 62 | 75 74 74 6f 6e 20 6e 61 |s, one b|utton na|
|00001270| 6d 65 20 70 65 72 20 70 | 61 72 61 6d 65 74 65 72 |me per p|arameter|
|00001280| 2e 0d 0d 45 78 61 6d 70 | 6c 65 73 0d 56 61 72 69 |...Examp|les.Vari|
|00001290| 61 62 6c 65 20 74 68 65 | 41 6e 73 77 65 72 0d 74 |able the|Answer.t|
|000012a0| 68 65 41 6e 73 77 65 72 | 20 3d 20 41 73 6b 42 75 |heAnswer| = AskBu|
|000012b0| 74 74 6f 6e 20 22 46 61 | 76 6f 72 69 74 65 20 66 |tton "Fa|vorite f|
|000012c0| 6c 61 76 6f 72 3f 22 2c | 20 22 43 68 6f 63 6f 6c |lavor?",| "Chocol|
|000012d0| 61 74 65 3c 72 65 74 75 | 72 6e 3e 53 74 72 61 77 |ate<retu|rn>Straw|
|000012e0| 62 65 72 72 79 3c 72 65 | 74 75 72 6e 3e 42 61 6e |berry<re|turn>Ban|
|000012f0| 61 6e 61 22 0d 2f 2f 20 | 54 79 70 65 73 20 31 2c |ana".// |Types 1,|
|00001300| 20 32 2c 20 6f 72 20 33 | 20 64 65 70 65 6e 64 69 | 2, or 3| dependi|
|00001310| 6e 67 20 6f 6e 20 74 68 | 65 20 62 75 74 74 6f 6e |ng on th|e button|
|00001320| 20 63 6c 69 63 6b 65 64 | 20 28 31 3d 43 68 6f 63 | clicked| (1=Choc|
|00001330| 6f 6c 61 74 65 2c 20 32 | 3d 20 53 74 72 61 77 62 |olate, 2|= Strawb|
|00001340| 65 72 72 79 2c 20 33 3d | 42 61 6e 61 6e 61 29 0d |erry, 3=|Banana).|
|00001350| 54 79 70 65 20 74 68 65 | 41 6e 73 77 65 72 0d 0d |Type the|Answer..|
|00001360| 53 65 65 20 41 6c 73 6f | 0d 4d 65 73 73 61 67 65 |See Also|.Message|
|00001370| 20 63 6f 6d 6d 61 6e 64 | 2c 20 41 73 6b 4c 69 73 | command|, AskLis|
|00001380| 74 20 66 75 6e 63 74 69 | 6f 6e 0d 0d 00 00 01 7e |t functi|on.....~|
|00001390| 00 13 00 00 00 00 00 0f | 00 0a 07 d2 00 9c 00 0c |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 14 00 0c 00 08 00 03 |........|........|
|000013b0| 01 9c 00 09 00 00 00 00 | 00 00 00 00 00 1b 00 0c |........|........|
|000013c0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 26 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.&......|........|
|000013e0| 00 00 00 00 00 2c 00 0c | 00 08 00 03 00 9c 00 09 |.....,..|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 31 00 0c 00 08 00 03 |........|.1......|
|00001400| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 3c 00 0c |........|.....<..|
|00001410| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 43 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |.C......|........|
|00001430| 00 00 00 00 00 4a 00 0c | 00 08 00 03 00 9c 00 09 |.....J..|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 4e 00 0c 00 08 00 03 |........|.N......|
|00001450| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 55 00 0c |........|.....U..|
|00001460| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 5a 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |.Z......|........|
|00001480| 00 00 00 00 00 66 00 0c | 00 08 00 03 00 9c 00 09 |.....f..|........|
|00001490| 00 00 00 00 00 00 00 00 | 00 8f 00 0c 00 08 00 03 |........|........|
|000014a0| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 95 00 0c |........|........|
|000014b0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 01 d7 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 01 e0 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 02 b4 00 0c 00 08 00 03 |........|........|
|000014f0| 01 9c 00 09 00 00 00 00 | 00 00 00 00 02 bd 00 0c |........|........|
|00001500| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 04 3a 41 73 6b 46 69 6c | 65 20 66 75 6e 63 74 69 |.:AskFil|e functi|
|00001520| 6f 6e 0d 0d 53 79 6e 74 | 61 78 0d 41 73 6b 46 69 |on..Synt|ax.AskFi|
|00001530| 6c 65 20 5b 74 79 70 65 | 2d 6c 69 73 74 5d 20 5b |le [type|-list] [|
|00001540| 2c 20 70 72 6f 6d 70 74 | 5d 0d 0d 44 65 73 63 72 |, prompt|]..Descr|
|00001550| 69 70 74 69 6f 6e 0d 44 | 69 73 70 6c 61 79 73 20 |iption.D|isplays |
|00001560| 61 20 64 69 72 65 63 74 | 6f 72 79 20 64 69 61 6c |a direct|ory dial|
|00001570| 6f 67 20 62 6f 78 20 61 | 6e 64 20 72 65 74 75 72 |og box a|nd retur|
|00001580| 6e 73 20 74 68 65 20 66 | 75 6c 6c 20 70 61 74 68 |ns the f|ull path|
|00001590| 20 74 6f 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 | to the |selected|
|000015a0| 20 66 69 6c 65 20 6f 72 | 20 66 6f 6c 64 65 72 2e | file or| folder.|
|000015b0| 20 49 66 20 79 6f 75 20 | 63 6c 69 63 6b 20 43 61 | If you |click Ca|
|000015c0| 6e 63 65 6c 20 69 6e 20 | 74 68 65 20 64 69 61 6c |ncel in |the dial|
|000015d0| 6f 67 20 62 6f 78 2c 20 | 41 73 6b 46 69 6c 65 20 |og box, |AskFile |
|000015e0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 65 6d 70 74 |returns |the empt|
|000015f0| 79 20 73 74 72 69 6e 67 | 20 28 d2 d3 29 2e 0d 0d |y string| (..)...|
|00001600| 54 79 70 65 2d 6c 69 73 | 74 20 69 73 20 61 20 6c |Type-lis|t is a l|
|00001610| 69 73 74 20 6f 66 20 66 | 6f 75 72 2d 63 68 61 72 |ist of f|our-char|
|00001620| 61 63 74 65 72 20 66 69 | 6c 65 20 74 79 70 65 20 |acter fi|le type |
|00001630| 63 6f 64 65 73 2c 20 73 | 75 63 68 20 61 73 20 d2 |codes, s|uch as .|
|00001640| 54 45 58 54 d3 2c 20 d2 | 50 49 43 54 d3 2c 20 d2 |TEXT., .|PICT., .|
|00001650| 57 44 42 4e d3 2c 20 6f | 72 20 d2 41 50 50 4c d3 |WDBN., o|r .APPL.|
|00001660| 2e 20 54 6f 20 70 65 72 | 6d 69 74 20 63 68 6f 6f |. To per|mit choo|
|00001670| 73 69 6e 67 20 61 20 66 | 6f 6c 64 65 72 2c 20 75 |sing a f|older, u|
|00001680| 73 65 20 74 68 65 20 70 | 73 65 75 64 6f 20 66 69 |se the p|seudo fi|
|00001690| 6c 65 20 74 79 70 65 20 | d2 66 6f 6c 64 d3 2e 20 |le type |.fold.. |
|000016a0| 49 66 20 79 6f 75 20 6f | 6d 69 74 20 d2 66 6f 6c |If you o|mit .fol|
|000016b0| 64 d3 2c 20 74 68 65 20 | 64 69 61 6c 6f 67 20 62 |d., the |dialog b|
|000016c0| 6f 78 20 70 65 72 6d 69 | 74 73 20 74 68 65 20 73 |ox permi|ts the s|
|000016d0| 65 6c 65 63 74 69 6f 6e | 20 6f 66 20 61 20 66 69 |election| of a fi|
|000016e0| 6c 65 20 6f 6e 6c 79 2c | 20 6e 6f 74 20 61 20 66 |le only,| not a f|
|000016f0| 6f 6c 64 65 72 2e 0d 0d | 50 72 6f 6d 70 74 20 69 |older...|Prompt i|
|00001700| 73 20 61 6e 20 6f 70 74 | 69 6f 6e 61 6c 20 6d 65 |s an opt|ional me|
|00001710| 73 73 61 67 65 20 74 6f | 20 64 69 73 70 6c 61 79 |ssage to| display|
|00001720| 20 69 6e 20 74 68 65 20 | 64 69 61 6c 6f 67 20 62 | in the |dialog b|
|00001730| 6f 78 2e 20 49 66 20 70 | 72 6f 6d 70 74 20 69 73 |ox. If p|rompt is|
|00001740| 20 6f 6d 69 74 74 65 64 | 2c 20 74 68 65 20 64 65 | omitted|, the de|
|00001750| 66 61 75 6c 74 20 6d 65 | 73 73 61 67 65 20 d2 53 |fault me|ssage .S|
|00001760| 65 6c 65 63 74 20 61 20 | 46 69 6c 65 2f 46 6f 6c |elect a |File/Fol|
|00001770| 64 65 72 3a d3 20 61 70 | 70 65 61 72 73 2e 0d 0d |der:. ap|pears...|
|00001780| 54 6f 20 73 65 74 20 74 | 68 65 20 64 65 66 61 75 |To set t|he defau|
|00001790| 6c 74 20 64 69 72 65 63 | 74 6f 72 79 20 74 68 61 |lt direc|tory tha|
|000017a0| 74 20 61 70 70 65 61 72 | 73 20 69 6e 20 74 68 65 |t appear|s in the|
|000017b0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2c 20 73 65 74 | dialog |box, set|
|000017c0| 20 74 68 65 20 44 69 72 | 65 63 74 6f 72 79 20 73 | the Dir|ectory s|
|000017d0| 79 73 74 65 6d 20 76 61 | 72 69 61 62 6c 65 20 74 |ystem va|riable t|
|000017e0| 6f 20 74 68 65 20 64 65 | 73 69 72 65 64 20 70 61 |o the de|sired pa|
|000017f0| 74 68 20 62 65 66 6f 72 | 65 20 63 61 6c 6c 69 6e |th befor|e callin|
|00001800| 67 20 41 73 6b 46 69 6c | 65 2e 0d 0d 49 6e 20 74 |g AskFil|e...In t|
|00001810| 68 65 20 41 73 6b 46 69 | 6c 65 20 64 69 61 6c 6f |he AskFi|le dialo|
|00001820| 67 20 62 6f 78 2c 20 63 | 68 65 63 6b 20 74 68 65 |g box, c|heck the|
|00001830| 20 d2 55 73 65 20 41 6c | 69 61 73 20 69 6e 73 74 | .Use Al|ias inst|
|00001840| 65 61 64 20 6f 66 20 6f | 72 69 67 69 6e 61 6c d3 |ead of o|riginal.|
|00001850| 20 63 68 65 63 6b 62 6f | 78 20 74 6f 20 72 65 74 | checkbo|x to ret|
|00001860| 75 72 6e 20 74 68 65 20 | 70 61 74 68 20 74 6f 20 |urn the |path to |
|00001870| 61 6e 20 61 6c 69 61 73 | 20 69 6e 73 74 65 61 64 |an alias| instead|
|00001880| 20 6f 66 20 74 68 65 20 | 70 61 74 68 20 74 6f 20 | of the |path to |
|00001890| 74 68 65 20 66 69 6c 65 | 20 6f 72 20 66 6f 6c 64 |the file| or fold|
|000018a0| 65 72 20 74 68 65 20 61 | 6c 69 61 73 20 72 65 66 |er the a|lias ref|
|000018b0| 65 72 73 20 74 6f 2e 0d | 0d 45 78 61 6d 70 6c 65 |ers to..|.Example|
|000018c0| 73 0d 56 61 72 69 61 62 | 6c 65 20 74 68 65 46 69 |s.Variab|le theFi|
|000018d0| 6c 65 2c 20 74 68 65 46 | 6f 6c 64 65 72 0d 74 68 |le, theF|older.th|
|000018e0| 65 46 6f 6c 64 65 72 20 | 3d 20 41 73 6b 46 69 6c |eFolder |= AskFil|
|000018f0| 65 20 22 66 6f 6c 64 22 | 0d 74 68 65 46 69 6c 65 |e "fold"|.theFile|
|00001900| 20 3d 20 41 73 6b 46 69 | 6c 65 20 22 54 45 58 54 | = AskFi|le "TEXT|
|00001910| 22 0d 0d 53 65 65 20 41 | 6c 73 6f 0d 41 73 6b 4e |"..See A|lso.AskN|
|00001920| 65 77 46 69 6c 65 20 66 | 75 6e 63 74 69 6f 6e 2c |ewFile f|unction,|
|00001930| 20 44 69 72 65 63 74 6f | 72 79 20 73 79 73 74 65 | Directo|ry syste|
|00001940| 6d 20 76 61 72 69 61 62 | 6c 65 0d 0d 00 00 01 7e |m variab|le.....~|
|00001950| 00 13 00 00 00 00 00 0f | 00 0a 07 d2 00 9c 00 0c |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 12 00 0c 00 08 00 03 |........|........|
|00001970| 01 9c 00 09 00 00 00 00 | 00 00 00 00 00 19 00 0c |........|........|
|00001980| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 22 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |."......|........|
|000019a0| 00 00 00 00 00 2b 00 0c | 00 08 00 03 00 9c 00 09 |.....+..|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 30 00 0c 00 08 00 03 |........|.0......|
|000019c0| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 36 00 0c |........|.....6..|
|000019d0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 39 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |.9......|........|
|000019f0| 00 00 00 00 00 45 00 0c | 00 08 00 03 00 9c 00 09 |.....E..|........|
|00001a00| 00 00 00 00 00 00 00 00 | 00 ee 00 0c 00 08 00 03 |........|........|
|00001a10| 02 9c 00 09 00 00 00 00 | 00 00 00 00 00 f7 00 0c |........|........|
|00001a20| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 01 e6 00 0c 00 08 00 03 | 02 9c 00 09 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 01 ec 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 02 25 00 0c 00 08 00 03 |........|.%......|
|00001a60| 02 9c 00 09 00 00 00 00 | 00 00 00 00 02 2b 00 0c |........|.....+..|
|00001a70| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 03 a7 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 03 b0 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 04 01 00 0c 00 08 00 03 |........|........|
|00001ab0| 01 9c 00 09 00 00 00 00 | 00 00 00 00 04 0a 00 0c |........|........|
|00001ac0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 04 d5 41 73 6b 4b 65 79 | 20 66 75 6e 63 74 69 6f |..AskKey| functio|
|00001ae0| 6e 0d 0d 53 79 6e 74 61 | 78 0d 41 73 6b 4b 65 79 |n..Synta|x.AskKey|
|00001af0| 20 5b 70 72 6f 6d 70 74 | 5d 20 5b 2c 20 64 65 66 | [prompt|] [, def|
|00001b00| 61 75 6c 74 2d 73 68 6f | 72 74 63 75 74 5d 20 5b |ault-sho|rtcut] [|
|00001b10| 2c 20 63 61 6e 63 65 6c | 2d 76 61 6c 75 65 5d 0d |, cancel|-value].|
|00001b20| 0d 44 65 73 63 72 69 70 | 74 69 6f 6e 0d 50 72 6f |.Descrip|tion.Pro|
|00001b30| 6d 70 74 73 20 79 6f 75 | 20 74 6f 20 70 72 65 73 |mpts you| to pres|
|00001b40| 73 20 61 20 6b 65 79 20 | 61 6e 64 20 72 65 74 75 |s a key |and retu|
|00001b50| 72 6e 73 20 74 68 65 20 | 6b 65 79 73 74 72 6f 6b |rns the |keystrok|
|00001b60| 65 20 69 6e 20 74 65 78 | 74 20 66 6f 72 6d 61 74 |e in tex|t format|
|00001b70| 2e 20 54 68 65 20 66 6f | 72 6d 61 74 20 69 73 20 |. The fo|rmat is |
|00001b80| 74 68 65 20 73 61 6d 65 | 20 61 73 20 74 68 61 74 |the same| as that|
|00001b90| 20 65 78 70 65 63 74 65 | 64 20 62 79 20 74 68 65 | expecte|d by the|
|00001ba0| 20 42 75 74 74 6f 6e 2e | 4b 65 79 53 68 6f 72 74 | Button.|KeyShort|
|00001bb0| 43 75 74 20 70 72 6f 70 | 65 72 74 79 20 28 73 65 |Cut prop|erty (se|
|00001bc0| 65 20 70 61 67 65 20 31 | 35 34 29 2e 20 59 6f 75 |e page 1|54). You|
|00001bd0| 20 63 61 6e 20 6f 70 74 | 69 6f 6e 61 6c 6c 79 20 | can opt|ionally |
|00001be0| 70 72 6f 76 69 64 65 20 | 61 20 64 65 66 61 75 6c |provide |a defaul|
|00001bf0| 74 20 73 68 6f 72 74 63 | 75 74 2c 20 61 20 62 72 |t shortc|ut, a br|
|00001c00| 69 65 66 20 70 72 6f 6d | 70 74 20 6d 65 73 73 61 |ief prom|pt messa|
|00001c10| 67 65 2c 20 61 6e 64 20 | 61 20 73 70 65 63 69 61 |ge, and |a specia|
|00001c20| 6c 20 76 61 6c 75 65 20 | 74 6f 20 72 65 74 75 72 |l value |to retur|
|00001c30| 6e 20 69 66 20 74 68 65 | 20 75 73 65 72 20 63 6c |n if the| user cl|
|00001c40| 69 63 6b 73 20 43 61 6e | 63 65 6c 2e 0d 0d 41 73 |icks Can|cel...As|
|00001c50| 6b 4b 65 79 20 72 65 74 | 75 72 6e 73 20 74 68 65 |kKey ret|urns the|
|00001c60| 20 6e 75 6c 6c 20 73 74 | 72 69 6e 67 20 28 22 22 | null st|ring (""|
|00001c70| 29 20 69 66 20 79 6f 75 | 20 63 6c 69 63 6b 20 4e |) if you| click N|
|00001c80| 6f 6e 65 20 69 6e 20 74 | 68 65 20 73 68 6f 72 74 |one in t|he short|
|00001c90| 63 75 74 20 64 69 61 6c | 6f 67 20 62 6f 78 2e 0d |cut dial|og box..|
|00001ca0| 0d 49 66 20 79 6f 75 20 | 73 75 70 70 6c 79 20 61 |.If you |supply a|
|00001cb0| 20 76 61 6c 75 65 20 69 | 6e 20 63 61 6e 63 65 6c | value i|n cancel|
|00001cc0| 2d 76 61 6c 75 65 2c 20 | 61 20 43 61 6e 63 65 6c |-value, |a Cancel|
|00001cd0| 20 62 75 74 74 6f 6e 20 | 61 70 70 65 61 72 73 20 | button |appears |
|00001ce0| 69 6e 20 61 64 64 69 74 | 69 6f 6e 20 74 6f 20 74 |in addit|ion to t|
|00001cf0| 68 65 20 4f 4b 20 61 6e | 64 20 4e 6f 6e 65 20 62 |he OK an|d None b|
|00001d00| 75 74 74 6f 6e 73 20 61 | 6e 64 20 41 73 6b 4b 65 |uttons a|nd AskKe|
|00001d10| 79 20 72 65 74 75 72 6e | 73 20 74 68 65 20 63 61 |y return|s the ca|
|00001d20| 6e 63 65 6c 2d 76 61 6c | 75 65 20 69 66 20 79 6f |ncel-val|ue if yo|
|00001d30| 75 20 63 6c 69 63 6b 20 | 43 61 6e 63 65 6c 2e 0d |u click |Cancel..|
|00001d40| 0d 45 78 61 6d 70 6c 65 | 0d 2f 2f 20 50 72 6f 6d |.Example|.// Prom|
|00001d50| 70 74 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 63 |pt the u|ser to c|
|00001d60| 68 61 6e 67 65 20 74 68 | 65 20 62 75 74 74 6f 6e |hange th|e button|
|00001d70| d5 73 20 73 68 6f 72 74 | 63 75 74 2c 20 74 68 65 |.s short|cut, the|
|00001d80| 6e 20 64 69 73 70 6c 61 | 79 20 74 68 65 20 6e 65 |n displa|y the ne|
|00001d90| 77 20 73 68 6f 72 74 63 | 75 74 2e 0d 2f 2f 20 55 |w shortc|ut..// U|
|00001da0| 73 65 20 74 68 65 20 62 | 75 74 74 6f 6e 27 73 20 |se the b|utton's |
|00001db0| 65 78 69 73 74 69 6e 67 | 20 73 68 6f 72 74 63 75 |existing| shortcu|
|00001dc0| 74 20 61 73 20 74 68 65 | 20 64 65 66 61 75 6c 74 |t as the| default|
|00001dd0| 20 73 68 6f 72 74 63 75 | 74 2e 0d 56 61 72 69 61 | shortcu|t..Varia|
|00001de0| 62 6c 65 20 74 68 65 4b | 65 79 0d 74 68 65 4b 65 |ble theK|ey.theKe|
|00001df0| 79 20 3d 20 41 73 6b 4b | 65 79 20 22 50 72 65 73 |y = AskK|ey "Pres|
|00001e00| 73 20 61 20 6b 65 79 20 | 63 6f 6d 62 69 6e 61 74 |s a key |combinat|
|00001e10| 69 6f 6e 3a 22 2c 20 42 | 75 74 74 6f 6e 2e 4b 65 |ion:", B|utton.Ke|
|00001e20| 79 53 68 6f 72 74 43 75 | 74 2c 20 43 68 61 72 20 |yShortCu|t, Char |
|00001e30| 30 0d 49 66 20 74 68 65 | 4b 65 79 20 3d 20 22 22 |0.If the|Key = ""|
|00001e40| 0d 20 20 20 20 20 4d 65 | 73 73 61 67 65 20 22 59 |. Me|ssage "Y|
|00001e50| 6f 75 20 63 6c 69 63 6b | 65 64 20 4e 6f 6e 65 2e |ou click|ed None.|
|00001e60| 22 0d 20 20 20 20 20 42 | 75 74 74 6f 6e 2e 4b 65 |". B|utton.Ke|
|00001e70| 79 53 68 6f 72 74 43 75 | 74 20 3d 20 22 22 20 20 |yShortCu|t = "" |
|00001e80| 20 20 20 2f 2f 20 72 65 | 6d 6f 76 65 20 74 68 65 | // re|move the|
|00001e90| 20 73 68 6f 72 74 63 75 | 74 2c 20 69 66 20 61 6e | shortcu|t, if an|
|00001ea0| 79 0d 45 6c 73 65 20 49 | 66 20 74 68 65 4b 65 79 |y.Else I|f theKey|
|00001eb0| 20 3d 20 43 68 61 72 20 | 30 0d 20 20 20 20 20 4d | = Char |0. M|
|00001ec0| 65 73 73 61 67 65 20 22 | 59 6f 75 20 63 6c 69 63 |essage "|You clic|
|00001ed0| 6b 65 64 20 43 61 6e 63 | 65 6c 2e 22 20 20 20 20 |ked Canc|el." |
|00001ee0| 20 2f 2f 20 64 6f 6e d5 | 74 20 63 68 61 6e 67 65 | // don.|t change|
|00001ef0| 20 6f 72 20 72 65 6d 6f | 76 65 20 74 68 65 20 73 | or remo|ve the s|
|00001f00| 68 6f 72 74 63 75 74 0d | 45 6c 73 65 20 0d 20 20 |hortcut.|Else . |
|00001f10| 20 20 20 42 75 74 74 6f | 6e 2e 4b 65 79 53 68 6f | Butto|n.KeySho|
|00001f20| 72 74 43 75 74 20 3d 20 | 74 68 65 4b 65 79 20 20 |rtCut = |theKey |
|00001f30| 20 20 20 2f 2f 20 63 68 | 61 6e 67 65 20 74 68 65 | // ch|ange the|
|00001f40| 20 73 68 6f 72 74 63 75 | 74 20 74 6f 20 74 68 65 | shortcu|t to the|
|00001f50| 20 6b 65 79 20 74 79 70 | 65 64 20 62 79 20 74 68 | key typ|ed by th|
|00001f60| 65 20 75 73 65 72 0d 20 | 20 20 20 20 4d 65 73 73 |e user. | Mess|
|00001f70| 61 67 65 20 22 54 68 69 | 73 20 62 75 74 74 6f 6e |age "Thi|s button|
|00001f80| 27 73 20 73 68 6f 72 74 | 63 75 74 20 69 73 20 6e |'s short|cut is n|
|00001f90| 6f 77 20 22 20 26 20 74 | 68 65 4b 65 79 0d 45 6e |ow " & t|heKey.En|
|00001fa0| 64 20 49 66 20 0d 0d 00 | 00 01 56 00 11 00 00 00 |d If ...|..V.....|
|00001fb0| 00 00 0f 00 0a 07 d2 00 | 9c 00 0c 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 11 00 0c 00 | 08 00 03 01 9c 00 09 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 18 00 0c 00 08 00 03 00 |........|........|
|00001fe0| 9c 00 09 00 00 00 00 00 | 00 00 00 00 20 00 0c 00 |........|.... ...|
|00001ff0| 08 00 03 02 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 26 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |&.......|........|
|00002010| 00 00 00 00 2b 00 0c 00 | 08 00 03 02 9c 00 09 00 |....+...|........|
|00002020| 00 00 00 00 00 00 00 00 | 3b 00 0c 00 08 00 03 00 |........|;.......|
|00002030| 9c 00 09 00 00 00 00 00 | 00 00 00 00 40 00 0c 00 |........|....@...|
|00002040| 08 00 03 02 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 4c 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |L.......|........|
|00002060| 00 00 00 00 4f 00 0c 00 | 08 00 03 01 9c 00 09 00 |....O...|........|
|00002070| 00 00 00 00 00 00 00 00 | 5b 00 0c 00 08 00 03 00 |........|[.......|
|00002080| 9c 00 09 00 00 00 00 00 | 00 00 00 01 e8 00 0c 00 |........|........|
|00002090| 08 00 03 02 9c 00 09 00 | 00 00 00 00 00 00 00 01 |........|........|
|000020a0| f4 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 02 4c 00 0c 00 | 08 00 03 02 9c 00 09 00 |....L...|........|
|000020c0| 00 00 00 00 00 00 00 02 | 58 00 0c 00 08 00 03 00 |........|X.......|
|000020d0| 9c 00 09 00 00 00 00 00 | 00 00 00 02 6f 00 0c 00 |........|....o...|
|000020e0| 08 00 03 01 9c 00 09 00 | 00 00 00 00 00 00 00 02 |........|........|
|000020f0| 77 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |w.......|........|
|00002100| 00 00 00 03 f9 41 73 6b | 4c 69 73 74 20 66 75 6e |.....Ask|List fun|
|00002110| 63 74 69 6f 6e 0d 0d 53 | 79 6e 74 61 78 0d 41 73 |ction..S|yntax.As|
|00002120| 6b 4c 69 73 74 20 69 74 | 65 6d 2d 6c 69 73 74 20 |kList it|em-list |
|00002130| 5b 2c 20 70 72 6f 6d 70 | 74 5d 20 5b 2c 20 73 65 |[, promp|t] [, se|
|00002140| 6c 65 63 74 65 64 2d 6c | 69 73 74 5d 0d 0d 44 65 |lected-l|ist]..De|
|00002150| 73 63 72 69 70 74 69 6f | 6e 0d 44 69 73 70 6c 61 |scriptio|n.Displa|
|00002160| 79 73 20 61 20 6d 65 73 | 73 61 67 65 20 28 70 72 |ys a mes|sage (pr|
|00002170| 6f 6d 70 74 29 20 61 6e | 64 20 61 20 6c 69 73 74 |ompt) an|d a list|
|00002180| 20 6f 66 20 69 74 65 6d | 73 20 28 69 74 65 6d 2d | of item|s (item-|
|00002190| 6c 69 73 74 29 20 69 6e | 20 61 20 64 69 61 6c 6f |list) in| a dialo|
|000021a0| 67 20 62 6f 78 20 61 6e | 64 20 72 65 74 75 72 6e |g box an|d return|
|000021b0| 73 20 61 20 6c 69 73 74 | 20 63 6f 6e 74 61 69 6e |s a list| contain|
|000021c0| 69 6e 67 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 |ing the |selected|
|000021d0| 20 69 74 65 6d 73 2e 20 | 49 66 20 79 6f 75 20 77 | items. |If you w|
|000021e0| 61 6e 74 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 |ant one |or more |
|000021f0| 69 74 65 6d 73 20 69 6e | 20 74 68 65 20 6c 69 73 |items in| the lis|
|00002200| 74 20 74 6f 20 61 70 70 | 65 61 72 20 73 65 6c 65 |t to app|ear sele|
|00002210| 63 74 65 64 20 62 79 20 | 64 65 66 61 75 6c 74 2c |cted by |default,|
|00002220| 20 69 6e 63 6c 75 64 65 | 20 74 68 65 20 6c 69 73 | include| the lis|
|00002230| 74 20 6f 66 20 73 65 6c | 65 63 74 65 64 20 69 74 |t of sel|ected it|
|00002240| 65 6d 73 20 69 6e 20 73 | 65 6c 65 63 74 65 64 2d |ems in s|elected-|
|00002250| 6c 69 73 74 2e 0d 0d 57 | 68 65 6e 20 74 68 65 20 |list...W|hen the |
|00002260| 64 69 61 6c 6f 67 20 62 | 6f 78 20 61 70 70 65 61 |dialog b|ox appea|
|00002270| 72 73 2c 20 73 65 6c 65 | 63 74 20 61 6e 20 69 74 |rs, sele|ct an it|
|00002280| 65 6d 20 62 79 20 63 6c | 69 63 6b 69 6e 67 20 69 |em by cl|icking i|
|00002290| 74 2c 20 62 79 20 75 73 | 69 6e 67 20 74 68 65 20 |t, by us|ing the |
|000022a0| 61 72 72 6f 77 20 6b 65 | 79 73 2c 20 6f 72 20 62 |arrow ke|ys, or b|
|000022b0| 79 20 74 79 70 69 6e 67 | 20 69 74 73 20 6e 61 6d |y typing| its nam|
|000022c0| 65 20 28 69 66 20 74 68 | 65 20 6c 69 73 74 20 69 |e (if th|e list i|
|000022d0| 73 20 73 6f 72 74 65 64 | 29 2e 20 54 6f 20 73 65 |s sorted|). To se|
|000022e0| 6c 65 63 74 20 61 20 73 | 69 6e 67 6c 65 20 69 74 |lect a s|ingle it|
|000022f0| 65 6d 20 61 6e 64 20 63 | 6c 6f 73 65 20 74 68 65 |em and c|lose the|
|00002300| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2c 20 64 6f 75 | dialog |box, dou|
|00002310| 62 6c 65 2d 63 6c 69 63 | 6b 20 74 68 65 20 69 74 |ble-clic|k the it|
|00002320| 65 6d 2e 20 0d 0d 54 6f | 20 73 65 6c 65 63 74 20 |em. ..To| select |
|00002330| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 69 74 |more tha|n one it|
|00002340| 65 6d 2c 20 68 6f 6c 64 | 20 64 6f 77 6e 20 74 68 |em, hold| down th|
|00002350| 65 20 43 6f 6d 6d 61 6e | 64 20 6b 65 79 20 61 6e |e Comman|d key an|
|00002360| 64 20 63 6c 69 63 6b 20 | 61 64 64 69 74 69 6f 6e |d click |addition|
|00002370| 61 6c 20 69 74 65 6d 73 | 2e 20 54 6f 20 73 65 6c |al items|. To sel|
|00002380| 65 63 74 20 61 20 63 6f | 6e 74 69 67 75 6f 75 73 |ect a co|ntiguous|
|00002390| 20 67 72 6f 75 70 20 6f | 66 20 69 74 65 6d 73 2c | group o|f items,|
|000023a0| 20 68 6f 6c 64 20 64 6f | 77 6e 20 74 68 65 20 53 | hold do|wn the S|
|000023b0| 68 69 66 74 20 6b 65 79 | 20 61 6e 64 20 63 6c 69 |hift key| and cli|
|000023c0| 63 6b 20 74 68 65 20 66 | 69 72 73 74 20 61 6e 64 |ck the f|irst and|
|000023d0| 20 6c 61 73 74 20 69 74 | 65 6d 73 20 69 6e 20 74 | last it|ems in t|
|000023e0| 68 65 20 67 72 6f 75 70 | 2e 0d 0d 45 78 61 6d 70 |he group|...Examp|
|000023f0| 6c 65 73 0d 56 61 72 69 | 61 62 6c 65 20 74 68 65 |les.Vari|able the|
|00002400| 52 65 73 70 6f 6e 73 65 | 0d 2f 2f 20 53 68 6f 77 |Response|.// Show|
|00002410| 20 61 20 6c 69 73 74 20 | 6f 66 20 63 6f 6c 6f 72 | a list |of color|
|00002420| 73 20 77 69 74 68 20 72 | 65 64 20 61 6e 64 20 79 |s with r|ed and y|
|00002430| 65 6c 6c 6f 77 20 61 6c | 72 65 61 64 79 20 73 65 |ellow al|ready se|
|00002440| 6c 65 63 74 65 64 0d 74 | 68 65 52 65 73 70 6f 6e |lected.t|heRespon|
|00002450| 73 65 20 3d 20 41 73 6b | 4c 69 73 74 20 22 72 65 |se = Ask|List "re|
|00002460| 64 3c 72 65 74 75 72 6e | 3e 6f 72 61 6e 67 65 3c |d<return|>orange<|
|00002470| 72 65 74 75 72 6e 3e 79 | 65 6c 6c 6f 77 22 2c 20 |return>y|ellow", |
|00002480| 22 50 69 63 6b 20 63 6f | 6c 6f 72 73 3a 22 2c 20 |"Pick co|lors:", |
|00002490| 22 72 65 64 3c 72 65 74 | 75 72 6e 3e 79 65 6c 6c |"red<ret|urn>yell|
|000024a0| 6f 77 22 0d 54 79 70 65 | 20 22 59 6f 75 20 70 69 |ow".Type| "You pi|
|000024b0| 63 6b 65 64 3a 22 20 26 | 20 52 65 74 75 72 6e 20 |cked:" &| Return |
|000024c0| 26 20 74 68 65 52 65 73 | 70 6f 6e 73 65 0d 0d 53 |& theRes|ponse..S|
|000024d0| 65 65 20 41 6c 73 6f 0d | 41 73 6b 54 65 78 74 20 |ee Also.|AskText |
|000024e0| 66 75 6e 63 74 69 6f 6e | 2c 20 41 73 6b 42 75 74 |function|, AskBut|
|000024f0| 74 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 0d 0d 00 00 |ton func|tion....|
|00002500| 01 a6 00 15 00 00 00 00 | 00 0f 00 0a 07 d2 00 9c |........|........|
|00002510| 00 0c 00 00 00 00 00 00 | 00 00 00 12 00 0c 00 08 |........|........|
|00002520| 00 03 01 9c 00 09 00 00 | 00 00 00 00 00 00 00 19 |........|........|
|00002530| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 21 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |...!....|........|
|00002550| 00 00 00 00 00 00 00 2a | 00 0c 00 08 00 03 00 9c |.......*|........|
|00002560| 00 09 00 00 00 00 00 00 | 00 00 00 2e 00 0c 00 08 |........|........|
|00002570| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 00 34 |........|.......4|
|00002580| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 39 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |...9....|........|
|000025a0| 00 00 00 00 00 00 00 46 | 00 0c 00 08 00 03 00 9c |.......F|........|
|000025b0| 00 09 00 00 00 00 00 00 | 00 00 00 49 00 0c 00 08 |........|...I....|
|000025c0| 00 03 01 9c 00 09 00 00 | 00 00 00 00 00 00 00 55 |........|.......U|
|000025d0| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 69 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |...i....|........|
|000025f0| 00 00 00 00 00 00 00 6f | 00 0c 00 08 00 03 00 9c |.......o|........|
|00002600| 00 09 00 00 00 00 00 00 | 00 00 00 86 00 0c 00 08 |........|........|
|00002610| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 00 8f |........|........|
|00002620| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00002630| 00 00 01 42 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |...B....|........|
|00002640| 00 00 00 00 00 00 01 4f | 00 0c 00 08 00 03 00 9c |.......O|........|
|00002650| 00 09 00 00 00 00 00 00 | 00 00 02 e6 00 0c 00 08 |........|........|
|00002660| 00 03 01 9c 00 09 00 00 | 00 00 00 00 00 00 02 ef |........|........|
|00002670| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00002680| 00 00 03 ca 00 0c 00 08 | 00 03 01 9c 00 09 00 00 |........|........|
|00002690| 00 00 00 00 00 00 03 d3 | 00 0c 00 08 00 03 00 9c |........|........|
|000026a0| 00 09 00 00 00 00 00 00 | 00 00 03 73 41 73 6b 4e |........|...sAskN|
|000026b0| 65 77 46 69 6c 65 20 66 | 75 6e 63 74 69 6f 6e 0d |ewFile f|unction.|
|000026c0| 0d 53 79 6e 74 61 78 0d | 41 73 6b 4e 65 77 46 69 |.Syntax.|AskNewFi|
|000026d0| 6c 65 20 5b 70 72 6f 6d | 70 74 5d 20 5b 2c 20 64 |le [prom|pt] [, d|
|000026e0| 65 66 61 75 6c 74 2d 6e | 61 6d 65 5d 0d 0d 44 65 |efault-n|ame]..De|
|000026f0| 73 63 72 69 70 74 69 6f | 6e 0d 44 69 73 70 6c 61 |scriptio|n.Displa|
|00002700| 79 73 20 61 20 73 74 61 | 6e 64 61 72 64 20 53 61 |ys a sta|ndard Sa|
|00002710| 76 65 20 41 73 20 64 69 | 61 6c 6f 67 20 62 6f 78 |ve As di|alog box|
|00002720| 20 66 6f 72 20 79 6f 75 | 20 74 6f 20 6c 6f 63 61 | for you| to loca|
|00002730| 74 65 20 61 6e 64 20 6e | 61 6d 65 20 61 20 66 69 |te and n|ame a fi|
|00002740| 6c 65 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 74 |le and r|eturns t|
|00002750| 68 65 20 66 75 6c 6c 20 | 70 61 74 68 20 74 6f 20 |he full |path to |
|00002760| 74 68 65 20 66 69 6c 65 | 2e 20 0d 0d 41 73 6b 4e |the file|. ..AskN|
|00002770| 65 77 46 69 6c 65 20 64 | 6f 65 73 20 6e 6f 74 20 |ewFile d|oes not |
|00002780| 61 63 74 75 61 6c 6c 79 | 20 63 72 65 61 74 65 20 |actually| create |
|00002790| 74 68 65 20 66 69 6c 65 | 2e 20 49 74 73 20 70 75 |the file|. Its pu|
|000027a0| 72 70 6f 73 65 20 69 73 | 20 74 6f 20 72 65 74 75 |rpose is| to retu|
|000027b0| 72 6e 20 61 20 66 75 6c | 6c 20 70 61 74 68 20 74 |rn a ful|l path t|
|000027c0| 6f 20 61 20 66 69 6c 65 | 20 74 68 61 74 20 79 6f |o a file| that yo|
|000027d0| 75 72 20 73 63 72 69 70 | 74 20 6d 61 79 20 63 72 |ur scrip|t may cr|
|000027e0| 65 61 74 65 20 6c 61 74 | 65 72 2e 0d 0d 45 78 61 |eate lat|er...Exa|
|000027f0| 6d 70 6c 65 73 0d 2f 2f | 20 44 69 73 70 6c 61 79 |mples.//| Display|
|00002800| 20 74 68 65 20 53 61 76 | 65 20 41 73 20 64 69 61 | the Sav|e As dia|
|00002810| 6c 6f 67 20 62 6f 78 0d | 56 61 72 69 61 62 6c 65 |log box.|Variable|
|00002820| 20 75 73 65 72 50 61 74 | 68 0d 75 73 65 72 50 61 | userPat|h.userPa|
|00002830| 74 68 20 3d 20 41 73 6b | 4e 65 77 46 69 6c 65 0d |th = Ask|NewFile.|
|00002840| 0d 2f 2f 20 44 69 73 70 | 6c 61 79 20 74 68 65 20 |.// Disp|lay the |
|00002850| 53 61 76 65 20 41 73 20 | 64 69 61 6c 6f 67 20 62 |Save As |dialog b|
|00002860| 6f 78 20 77 69 74 68 20 | 61 20 70 72 6f 6d 70 74 |ox with |a prompt|
|00002870| 20 61 6e 64 20 64 65 66 | 61 75 6c 74 20 6e 61 6d | and def|ault nam|
|00002880| 65 20 6f 66 20 22 43 6c | 69 70 62 6f 61 72 64 20 |e of "Cl|ipboard |
|00002890| 53 74 75 66 66 22 20 0d | 56 61 72 69 61 62 6c 65 |Stuff" .|Variable|
|000028a0| 20 75 73 65 72 50 61 74 | 68 0d 75 73 65 72 50 61 | userPat|h.userPa|
|000028b0| 74 68 20 3d 20 41 73 6b | 4e 65 77 46 69 6c 65 20 |th = Ask|NewFile |
|000028c0| 22 53 61 76 65 20 63 6c | 69 70 62 6f 61 72 64 20 |"Save cl|ipboard |
|000028d0| 73 74 75 66 66 20 77 68 | 65 72 65 3f 22 2c 20 22 |stuff wh|ere?", "|
|000028e0| 43 6c 69 70 62 6f 61 72 | 64 20 53 74 75 66 66 22 |Clipboar|d Stuff"|
|000028f0| 0d 2f 2f 20 41 64 64 20 | 74 68 65 20 43 6c 69 70 |.// Add |the Clip|
|00002900| 62 6f 61 72 64 20 63 6f | 6e 74 65 6e 74 73 20 74 |board co|ntents t|
|00002910| 6f 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |o the en|d of the|
|00002920| 20 66 69 6c 65 20 73 70 | 65 63 69 66 69 65 64 20 | file sp|ecified |
|00002930| 62 79 20 74 68 65 20 75 | 73 65 72 0d 43 6f 6e 76 |by the u|ser.Conv|
|00002940| 65 72 74 43 6c 69 70 20 | 0d 46 69 6c 65 28 75 73 |ertClip |.File(us|
|00002950| 65 72 50 61 74 68 29 2e | 41 70 70 65 6e 64 20 3d |erPath).|Append =|
|00002960| 20 43 6c 69 70 62 6f 61 | 72 64 20 26 20 52 65 74 | Clipboa|rd & Ret|
|00002970| 75 72 6e 20 26 20 52 65 | 74 75 72 6e 0d 2f 2f 20 |urn & Re|turn.// |
|00002980| 44 69 73 70 6c 61 79 20 | 74 68 65 20 66 75 6c 6c |Display |the full|
|00002990| 20 70 61 74 68 20 74 6f | 20 74 68 65 20 6e 61 6d | path to| the nam|
|000029a0| 65 64 20 66 69 6c 65 0d | 4d 65 73 73 61 67 65 20 |ed file.|Message |
|000029b0| 22 59 6f 75 72 20 43 6c | 69 70 62 6f 61 72 64 20 |"Your Cl|ipboard |
|000029c0| 64 61 74 61 20 77 61 73 | 20 61 64 64 65 64 20 74 |data was| added t|
|000029d0| 6f 20 22 20 26 20 52 65 | 74 75 72 6e 20 26 20 75 |o " & Re|turn & u|
|000029e0| 73 65 72 50 61 74 68 0d | 0d 53 65 65 20 41 6c 73 |serPath.|.See Als|
|000029f0| 6f 0d 41 73 6b 46 69 6c | 65 20 66 75 6e 63 74 69 |o.AskFil|e functi|
|00002a00| 6f 6e 2c 20 44 69 72 65 | 63 74 6f 72 79 20 73 79 |on, Dire|ctory sy|
|00002a10| 73 74 65 6d 20 76 61 72 | 69 61 62 6c 65 0d 0d 00 |stem var|iable...|
|00002a20| 00 01 06 00 0d 00 00 00 | 00 00 0f 00 0a 07 d2 00 |........|........|
|00002a30| 9c 00 0c 00 00 00 00 00 | 00 00 00 00 15 00 0c 00 |........|........|
|00002a40| 08 00 03 01 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 1c 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 28 00 0c 00 | 08 00 03 02 9c 00 09 00 |....(...|........|
|00002a70| 00 00 00 00 00 00 00 00 | 2e 00 0c 00 08 00 03 00 |........|........|
|00002a80| 9c 00 09 00 00 00 00 00 | 00 00 00 00 33 00 0c 00 |........|....3...|
|00002a90| 08 00 03 02 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002aa0| 3f 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |?.......|........|
|00002ab0| 00 00 00 00 42 00 0c 00 | 08 00 03 01 9c 00 09 00 |....B...|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 4e 00 0c 00 08 00 03 00 |........|N.......|
|00002ad0| 9c 00 09 00 00 00 00 00 | 00 00 00 01 41 00 0c 00 |........|....A...|
|00002ae0| 08 00 03 01 9c 00 09 00 | 00 00 00 00 00 00 00 01 |........|........|
|00002af0| 4a 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |J.......|........|
|00002b00| 00 00 00 03 3d 00 0c 00 | 08 00 03 01 9c 00 09 00 |....=...|........|
|00002b10| 00 00 00 00 00 00 00 03 | 46 00 0c 00 08 00 03 00 |........|F.......|
|00002b20| 9c 00 09 00 00 00 00 00 | 00 00 00 04 49 41 73 6b |........|....IAsk|
|00002b30| 54 65 78 74 20 66 75 6e | 63 74 69 6f 6e 0d 0d 53 |Text fun|ction..S|
|00002b40| 79 6e 74 61 78 0d 41 73 | 6b 54 65 78 74 20 5b 70 |yntax.As|kText [p|
|00002b50| 72 6f 6d 70 74 5d 20 5b | 2c 20 64 65 66 61 75 6c |rompt] [|, defaul|
|00002b60| 74 2d 76 61 6c 75 65 5d | 20 5b 2c 20 63 61 6e 63 |t-value]| [, canc|
|00002b70| 65 6c 2d 76 61 6c 75 65 | 5d 0d 0d 44 65 73 63 72 |el-value|]..Descr|
|00002b80| 69 70 74 69 6f 6e 0d 44 | 69 73 70 6c 61 79 73 20 |iption.D|isplays |
|00002b90| 61 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 77 69 74 |a dialog| box wit|
|00002ba0| 68 20 61 6e 20 65 64 69 | 74 20 62 6f 78 20 61 6e |h an edi|t box an|
|00002bb0| 64 20 70 72 6f 6d 70 74 | 73 20 79 6f 75 20 74 6f |d prompt|s you to|
|00002bc0| 20 74 79 70 65 20 61 20 | 6c 69 6e 65 20 6f 66 20 | type a |line of |
|00002bd0| 74 65 78 74 2e 20 57 68 | 65 6e 20 79 6f 75 20 63 |text. Wh|en you c|
|00002be0| 6c 69 63 6b 20 4f 4b 2c | 20 74 68 65 20 66 75 6e |lick OK,| the fun|
|00002bf0| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 74 68 |ction re|turns th|
|00002c00| 65 20 74 79 70 65 64 20 | 74 65 78 74 2e 20 54 68 |e typed |text. Th|
|00002c10| 65 20 6f 70 74 69 6f 6e | 61 6c 20 70 72 6f 6d 70 |e option|al promp|
|00002c20| 74 20 69 73 20 74 68 65 | 20 70 72 6f 6d 70 74 20 |t is the| prompt |
|00002c30| 69 6e 20 74 68 65 20 64 | 69 61 6c 6f 67 20 62 6f |in the d|ialog bo|
|00002c40| 78 2e 20 54 68 65 20 73 | 65 63 6f 6e 64 20 70 61 |x. The s|econd pa|
|00002c50| 72 61 6d 65 74 65 72 2c | 20 64 65 66 61 75 6c 74 |rameter,| default|
|00002c60| 2d 76 61 6c 75 65 2c 20 | 69 73 20 61 6e 20 6f 70 |-value, |is an op|
|00002c70| 74 69 6f 6e 61 6c 20 64 | 65 66 61 75 6c 74 20 73 |tional d|efault s|
|00002c80| 74 72 69 6e 67 20 74 68 | 61 74 20 61 70 70 65 61 |tring th|at appea|
|00002c90| 72 73 20 70 72 65 2d 65 | 6e 74 65 72 65 64 20 69 |rs pre-e|ntered i|
|00002ca0| 6e 20 74 68 65 20 65 64 | 69 74 20 62 6f 78 2e 20 |n the ed|it box. |
|00002cb0| 0d 0d 49 66 20 79 6f 75 | 20 73 75 70 70 6c 79 20 |..If you| supply |
|00002cc0| 61 20 76 61 6c 75 65 20 | 69 6e 20 63 61 6e 63 65 |a value |in cance|
|00002cd0| 6c 2d 76 61 6c 75 65 2c | 20 61 20 43 61 6e 63 65 |l-value,| a Cance|
|00002ce0| 6c 20 62 75 74 74 6f 6e | 20 61 70 70 65 61 72 73 |l button| appears|
|00002cf0| 20 69 6e 20 61 64 64 69 | 74 69 6f 6e 20 74 6f 20 | in addi|tion to |
|00002d00| 74 68 65 20 4f 4b 20 62 | 75 74 74 6f 6e 20 61 6e |the OK b|utton an|
|00002d10| 64 20 41 73 6b 54 65 78 | 74 20 72 65 74 75 72 6e |d AskTex|t return|
|00002d20| 73 20 74 68 65 20 63 61 | 6e 63 65 6c 2d 76 61 6c |s the ca|ncel-val|
|00002d30| 75 65 20 69 66 20 79 6f | 75 20 63 6c 69 63 6b 20 |ue if yo|u click |
|00002d40| 43 61 6e 63 65 6c 2e 0d | 0d 45 78 61 6d 70 6c 65 |Cancel..|.Example|
|00002d50| 73 0d 2f 2f 20 41 73 73 | 69 67 6e 73 20 77 68 61 |s.// Ass|igns wha|
|00002d60| 74 65 76 65 72 20 69 73 | 20 74 79 70 65 64 20 74 |tever is| typed t|
|00002d70| 6f 20 52 65 73 75 6c 74 | 2e 20 54 68 65 20 64 69 |o Result|. The di|
|00002d80| 61 6c 6f 67 20 62 6f 78 | 20 73 61 79 73 3a 20 54 |alog box| says: T|
|00002d90| 79 70 65 20 73 6f 6d 65 | 74 68 69 6e 67 0d 56 61 |ype some|thing.Va|
|00002da0| 72 69 61 62 6c 65 20 52 | 65 73 75 6c 74 2c 20 66 |riable R|esult, f|
|00002db0| 61 76 6f 72 69 74 65 46 | 72 75 69 74 2c 20 74 68 |avoriteF|ruit, th|
|00002dc0| 65 52 65 73 70 6f 6e 73 | 65 0d 52 65 73 75 6c 74 |eRespons|e.Result|
|00002dd0| 20 3d 20 41 73 6b 54 65 | 78 74 20 22 54 79 70 65 | = AskTe|xt "Type|
|00002de0| 20 73 6f 6d 65 74 68 69 | 6e 67 22 0d 0d 2f 2f 20 | somethi|ng"..// |
|00002df0| 54 68 65 20 64 65 66 61 | 75 6c 74 20 72 65 73 70 |The defa|ult resp|
|00002e00| 6f 6e 73 65 20 69 73 20 | 42 61 6e 61 6e 61 0d 66 |onse is |Banana.f|
|00002e10| 61 76 6f 72 69 74 65 46 | 72 75 69 74 20 3d 20 41 |avoriteF|ruit = A|
|00002e20| 73 6b 54 65 78 74 20 22 | 57 68 61 74 d5 73 20 79 |skText "|What.s y|
|00002e30| 6f 75 72 20 66 61 76 6f | 72 69 74 65 20 66 72 75 |our favo|rite fru|
|00002e40| 69 74 3f 22 2c 20 22 42 | 61 6e 61 6e 61 22 2c 20 |it?", "B|anana", |
|00002e50| 43 68 61 72 20 30 0d 74 | 68 65 52 65 73 70 6f 6e |Char 0.t|heRespon|
|00002e60| 73 65 20 3d 20 22 59 6f | 75 20 74 79 70 65 64 20 |se = "Yo|u typed |
|00002e70| 22 20 26 20 52 65 73 75 | 6c 74 20 26 20 22 20 61 |" & Resu|lt & " a|
|00002e80| 6e 64 20 22 0d 49 66 20 | 66 61 76 6f 72 69 74 65 |nd ".If |favorite|
|00002e90| 46 72 75 69 74 20 3d 20 | 43 68 61 72 20 30 0d 20 |Fruit = |Char 0. |
|00002ea0| 20 20 20 20 4d 65 73 73 | 61 67 65 20 74 68 65 52 | Mess|age theR|
|00002eb0| 65 73 70 6f 6e 73 65 20 | 26 20 22 79 6f 75 20 63 |esponse |& "you c|
|00002ec0| 6c 69 63 6b 65 64 20 43 | 61 6e 63 65 6c 2e 22 0d |licked C|ancel.".|
|00002ed0| 45 6c 73 65 20 0d 20 20 | 20 20 20 4d 65 73 73 61 |Else . | Messa|
|00002ee0| 67 65 20 74 68 65 52 65 | 73 70 6f 6e 73 65 20 26 |ge theRe|sponse &|
|00002ef0| 20 22 79 6f 75 72 20 66 | 61 76 6f 72 69 74 65 20 | "your f|avorite |
|00002f00| 66 72 75 69 74 20 69 73 | 20 22 20 26 20 66 61 76 |fruit is| " & fav|
|00002f10| 6f 72 69 74 65 46 72 75 | 69 74 0d 45 6e 64 20 49 |oriteFru|it.End I|
|00002f20| 66 20 0d 0d 53 65 65 20 | 41 6c 73 6f 0d 4d 65 73 |f ..See |Also.Mes|
|00002f30| 73 61 67 65 20 63 6f 6d | 6d 61 6e 64 2c 20 41 73 |sage com|mand, As|
|00002f40| 6b 42 75 74 74 6f 6e 20 | 66 75 6e 63 74 69 6f 6e |kButton |function|
|00002f50| 2c 20 41 73 6b 4c 69 73 | 74 20 66 75 6e 63 74 69 |, AskLis|t functi|
|00002f60| 6f 6e 2c 20 41 73 6b 46 | 69 6c 65 20 66 75 6e 63 |on, AskF|ile func|
|00002f70| 74 69 6f 6e 0d 0d 00 00 | 01 ce 00 17 00 00 00 00 |tion....|........|
|00002f80| 00 0f 00 0a 07 d2 00 9c | 00 0c 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 12 00 0c 00 08 | 00 03 01 9c 00 09 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 19 | 00 0c 00 08 00 03 00 9c |........|........|
|00002fb0| 00 09 00 00 00 00 00 00 | 00 00 00 22 00 0c 00 08 |........|..."....|
|00002fc0| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 00 28 |........|.......(|
|00002fd0| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 2d 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |...-....|........|
|00002ff0| 00 00 00 00 00 00 00 3a | 00 0c 00 08 00 03 00 9c |.......:|........|
|00003000| 00 09 00 00 00 00 00 00 | 00 00 00 3f 00 0c 00 08 |........|...?....|
|00003010| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 00 4b |........|.......K|
|00003020| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 4e 00 0c 00 08 | 00 03 01 9c 00 09 00 00 |...N....|........|
|00003040| 00 00 00 00 00 00 00 5a | 00 0c 00 08 00 03 00 9c |.......Z|........|
|00003050| 00 09 00 00 00 00 00 00 | 00 00 00 ee 00 0c 00 08 |........|........|
|00003060| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 00 f5 |........|........|
|00003070| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00003080| 00 00 01 2c 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |...,....|........|
|00003090| 00 00 00 00 00 00 01 39 | 00 0c 00 08 00 03 00 9c |.......9|........|
|000030a0| 00 09 00 00 00 00 00 00 | 00 00 01 9e 00 0c 00 08 |........|........|
|000030b0| 00 03 02 9c 00 09 00 00 | 00 00 00 00 00 00 01 aa |........|........|
|000030c0| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 01 f9 00 0c 00 08 | 00 03 02 9c 00 09 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 02 05 | 00 0c 00 08 00 03 00 9c |........|........|
|000030f0| 00 09 00 00 00 00 00 00 | 00 00 02 1c 00 0c 00 08 |........|........|
|00003100| 00 03 01 9c 00 09 00 00 | 00 00 00 00 00 00 02 25 |........|.......%|
|00003110| 00 0c 00 08 00 03 00 9c | 00 09 00 00 00 00 00 00 |........|........|
|00003120| 00 00 03 f7 00 0c 00 08 | 00 03 01 9c 00 09 00 00 |........|........|
|00003130| 00 00 00 00 00 00 04 00 | 00 0c 00 08 00 03 00 9c |........|........|
|00003140| 00 09 00 00 00 00 00 00 | 00 00 02 b1 41 53 52 65 |........|....ASRe|
|00003150| 73 75 6c 74 20 73 79 73 | 74 65 6d 20 76 61 72 69 |sult sys|tem vari|
|00003160| 61 62 6c 65 0d 0d 44 65 | 73 63 72 69 70 74 69 6f |able..De|scriptio|
|00003170| 6e 0d 43 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 41 |n.Contai|ns the A|
|00003180| 70 70 6c 65 53 63 72 69 | 70 74 20 72 65 73 75 6c |ppleScri|pt resul|
|00003190| 74 20 76 61 72 69 61 62 | 6c 65 2e 20 0d 0d 45 76 |t variab|le. ..Ev|
|000031a0| 65 72 79 20 74 69 6d 65 | 20 61 6e 20 41 70 70 6c |ery time| an Appl|
|000031b0| 65 53 63 72 69 70 74 20 | 73 74 61 74 65 6d 65 6e |eScript |statemen|
|000031c0| 74 20 69 73 20 65 78 65 | 63 75 74 65 64 2c 20 74 |t is exe|cuted, t|
|000031d0| 68 65 20 72 65 74 75 72 | 6e 65 64 20 69 6e 66 6f |he retur|ned info|
|000031e0| 72 6d 61 74 69 6f 6e 20 | 69 73 20 70 75 74 20 69 |rmation |is put i|
|000031f0| 6e 74 6f 20 74 68 65 20 | 41 70 70 6c 65 53 63 72 |nto the |AppleScr|
|00003200| 69 70 74 20 76 61 72 69 | 61 62 6c 65 20 d2 72 65 |ipt vari|able .re|
|00003210| 73 75 6c 74 2e d3 20 49 | 66 20 6e 6f 20 69 6e 66 |sult.. I|f no inf|
|00003220| 6f 72 6d 61 74 69 6f 6e | 20 69 73 20 72 65 74 75 |ormation| is retu|
|00003230| 72 6e 65 64 2c 20 74 68 | 65 20 72 65 73 75 6c 74 |rned, th|e result|
|00003240| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 73 65 74 | variabl|e is set|
|00003250| 20 74 6f 20 65 6d 70 74 | 79 2e 20 54 68 65 20 41 | to empt|y. The A|
|00003260| 53 52 65 73 75 6c 74 20 | 73 79 73 74 65 6d 20 76 |SResult |system v|
|00003270| 61 72 69 61 62 6c 65 20 | 6c 65 74 73 20 79 6f 75 |ariable |lets you|
|00003280| 20 72 65 74 72 69 65 76 | 65 20 74 68 65 20 76 61 | retriev|e the va|
|00003290| 6c 75 65 20 6f 66 20 41 | 70 70 6c 65 53 63 72 69 |lue of A|ppleScri|
|000032a0| 70 74 d5 73 20 72 65 73 | 75 6c 74 20 76 61 72 69 |pt.s res|ult vari|
|000032b0| 61 62 6c 65 2e 0d 0d 45 | 78 61 6d 70 6c 65 73 0d |able...E|xamples.|
|000032c0| 2f 2f 20 44 69 73 70 6c | 61 79 20 61 20 6d 65 73 |// Displ|ay a mes|
|000032d0| 73 61 67 65 20 62 6f 78 | 20 73 68 6f 77 69 6e 67 |sage box| showing|
|000032e0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 53 63 72 | the nam|e of Scr|
|000032f0| 69 70 74 61 62 6c 65 20 | 54 65 78 74 20 45 64 69 |iptable |Text Edi|
|00003300| 74 6f 72 d5 73 20 66 72 | 6f 6e 74 20 77 69 6e 64 |tor.s fr|ont wind|
|00003310| 6f 77 0d 41 70 70 6c 65 | 53 63 72 69 70 74 0d 20 |ow.Apple|Script. |
|00003320| 20 20 20 20 2d 2d 20 70 | 75 74 73 20 74 68 65 20 | -- p|uts the |
|00003330| 77 69 6e 64 6f 77 20 6e | 61 6d 65 20 69 6e 20 72 |window n|ame in r|
|00003340| 65 73 75 6c 74 0d 20 20 | 20 20 20 67 65 74 20 74 |esult. | get t|
|00003350| 68 65 20 6e 61 6d 65 20 | 6f 66 20 77 69 6e 64 6f |he name |of windo|
|00003360| 77 20 31 20 6f 66 20 61 | 70 70 6c 69 63 61 74 69 |w 1 of a|pplicati|
|00003370| 6f 6e 20 22 53 63 72 69 | 70 74 61 62 6c 65 20 54 |on "Scri|ptable T|
|00003380| 65 78 74 20 45 64 69 74 | 6f 72 22 0d 45 6e 64 20 |ext Edit|or".End |
|00003390| 41 70 70 6c 65 53 63 72 | 69 70 74 0d 4d 65 73 73 |AppleScr|ipt.Mess|
|000033a0| 61 67 65 20 41 53 52 65 | 73 75 6c 74 0d 0d 53 65 |age ASRe|sult..Se|
|000033b0| 65 20 41 6c 73 6f 0d 49 | 6e 74 65 67 72 61 74 69 |e Also.I|ntegrati|
|000033c0| 6e 67 20 4f 6e 65 43 6c | 69 63 6b 20 61 6e 64 20 |ng OneCl|ick and |
|000033d0| 41 70 70 6c 65 53 63 72 | 69 70 74 20 28 70 61 67 |AppleScr|ipt (pag|
|000033e0| 65 20 33 32 30 29 2c 20 | 41 70 70 6c 65 53 63 72 |e 320), |AppleScr|
|000033f0| 69 70 74 20 63 6f 6d 6d | 61 6e 64 0d 0d 00 00 00 |ipt comm|and.....|
|00003400| 8e 00 07 00 00 00 00 00 | 0f 00 0a 07 d2 00 9c 00 |........|........|
|00003410| 0c 00 00 00 00 00 00 00 | 00 00 1a 00 0c 00 08 00 |........|........|
|00003420| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 00 26 00 |........|......&.|
|00003430| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00003440| 00 01 6b 00 0c 00 08 00 | 03 01 9c 00 09 00 00 00 |..k.....|........|
|00003450| 00 00 00 00 00 01 74 00 | 0c 00 08 00 03 00 9c 00 |......t.|........|
|00003460| 09 00 00 00 00 00 00 00 | 00 02 62 00 0c 00 08 00 |........|..b.....|
|00003470| 03 01 9c 00 09 00 00 00 | 00 00 00 00 00 02 6b 00 |........|......k.|
|00003480| 0c 00 08 00 03 00 9c 00 | 09 00 00 00 00 00 00 00 |........|........|
|00003490| 00 00 a4 42 65 65 70 20 | 63 6f 6d 6d 61 6e 64 0d |...Beep |command.|
|000034a0| 0d 53 79 6e 74 61 78 0d | 42 65 65 70 0d 0d 44 65 |.Syntax.|Beep..De|
|000034b0| 73 63 72 69 70 74 69 6f | 6e 0d 50 6c 61 79 73 20 |scriptio|n.Plays |
|000034c0| 74 68 65 20 73 79 73 74 | 65 6d 20 61 6c 65 72 74 |the syst|em alert|
|000034d0| 20 73 6f 75 6e 64 2e 0d | 0d 45 78 61 6d 70 6c 65 | sound..|.Example|
|000034e0| 73 0d 42 65 65 70 0d 0d | 53 65 65 20 41 6c 73 6f |s.Beep..|See Also|
|000034f0| 0d 42 65 65 70 4c 65 76 | 65 6c 20 73 79 73 74 65 |.BeepLev|el syste|
|00003500| 6d 20 76 61 72 69 61 62 | 6c 65 2c 20 53 6f 75 6e |m variab|le, Soun|
|00003510| 64 20 63 6f 6d 6d 61 6e | 64 2c 20 53 6f 75 6e 64 |d comman|d, Sound|
|00003520| 4c 65 76 65 6c 20 73 79 | 73 74 65 6d 20 76 61 72 |Level sy|stem var|
|00003530| 69 61 62 6c 65 0d 0d 00 | 00 00 b6 00 09 00 00 00 |iable...|........|
|00003540| 00 00 0f 00 0a 07 d2 00 | 9c 00 0c 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 0e 00 0c 00 | 08 00 03 01 9c 00 09 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 15 00 0c 00 08 00 03 00 |........|........|
|00003570| 9c 00 09 00 00 00 00 00 | 00 00 00 00 1b 00 0c 00 |........|........|
|00003580| 08 00 03 01 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 27 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |'.......|........|
|000035a0| 00 00 00 00 46 00 0c 00 | 08 00 03 01 9c 00 09 00 |....F...|........|
|000035b0| 00 00 00 00 00 00 00 00 | 4f 00 0c 00 08 00 03 00 |........|O.......|
|000035c0| 9c 00 09 00 00 00 00 00 | 00 00 00 00 55 00 0c 00 |........|....U...|
|000035d0| 08 00 03 01 9c 00 09 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 5e 00 0c 00 08 00 03 00 | 9c 00 09 00 00 00 00 00 |^.......|........|
|000035f0| 00 00 00 02 87 42 65 65 | 70 4c 65 76 65 6c 20 73 |.....Bee|pLevel s|
|00003600| 79 73 74 65 6d 20 76 61 | 72 69 61 62 6c 65 0d 0d |ystem va|riable..|
|00003610| 44 65 73 63 72 69 70 74 | 69 6f 6e 0d 52 65 74 75 |Descript|ion.Retu|
|00003620| 72 6e 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |rns the |current |
|00003630| 61 6c 65 72 74 20 73 6f | 75 6e 64 20 76 6f 6c 75 |alert so|und volu|
|00003640| 6d 65 2c 20 6f 72 20 73 | 65 74 73 20 74 68 65 20 |me, or s|ets the |
|00003650| 61 6c 65 72 74 20 76 6f | 6c 75 6d 65 20 74 6f 20 |alert vo|lume to |
|00003660| 61 20 6e 65 77 20 76 61 | 6c 75 65 2e 20 43 68 61 |a new va|lue. Cha|
|00003670| 6e 67 69 6e 67 20 74 68 | 65 20 42 65 65 70 4c 65 |nging th|e BeepLe|
|00003680| 76 65 6c 20 76 6f 6c 75 | 6d 65 20 61 66 66 65 63 |vel volu|me affec|
|00003690| 74 73 20 6f 6e 6c 79 20 | 74 68 65 20 64 65 66 61 |ts only |the defa|
|000036a0| 75 6c 74 20 62 65 65 70 | 20 73 6f 75 6e 64 2c 20 |ult beep| sound, |
|000036b0| 6e 6f 74 20 74 68 65 20 | 76 6f 6c 75 6d 65 20 6f |not the |volume o|
|000036c0| 66 20 6f 74 68 65 72 20 | 73 79 73 74 65 6d 20 73 |f other |system s|
|000036d0| 6f 75 6e 64 73 2e 20 49 | 74 d5 73 20 74 68 65 20 |ounds. I|t.s the |
|000036e0| 73 61 6d 65 20 61 73 20 | 61 64 6a 75 73 74 69 6e |same as |adjustin|
|000036f0| 67 20 74 68 65 20 53 79 | 73 74 65 6d 20 41 6c 65 |g the Sy|stem Ale|
|00003700| 72 74 20 56 6f 6c 75 6d | 65 20 6f 6e 20 74 68 65 |rt Volum|e on the|
|00003710| 20 41 6c 65 72 74 73 20 | 70 61 6e 65 6c 20 6f 66 | Alerts |panel of|
|00003720| 20 74 68 65 20 4d 6f 6e | 69 74 6f 72 73 20 26 20 | the Mon|itors & |
|00003730| 53 6f 75 6e 64 20 63 6f | 6e 74 72 6f 6c 20 70 61 |Sound co|ntrol pa|
|00003740| 6e 65 6c 2e 0d 0d 54 68 | 65 20 61 6c 65 72 74 20 |nel...Th|e alert |
|00003750| 73 6f 75 6e 64 20 6c 65 | 76 65 6c 20 63 61 6e 20 |sound le|vel can |
|00003760| 62 65 20 7a 65 72 6f 20 | 28 6e 6f 20 73 6f 75 6e |be zero |(no soun|
|00003770| 64 29 20 74 6f 20 37 20 | 28 68 69 67 68 65 73 74 |d) to 7 |(highest|
|00003780| 20 73 6f 75 6e 64 20 6c | 65 76 65 6c 29 2e 0d 0d | sound l|evel)...|
|00003790| 45 78 61 6d 70 6c 65 73 | 0d 2f 2f 20 49 66 20 74 |Examples|.// If t|
|000037a0| 68 65 20 4f 70 74 69 6f | 6e 20 6b 65 79 20 69 73 |he Optio|n key is|
|000037b0| 20 68 65 6c 64 20 64 6f | 77 6e 2c 20 74 75 72 6e | held do|wn, turn|
|000037c0| 20 6f 66 66 20 74 68 65 | 20 61 6c 65 72 74 20 73 | off the| alert s|
|000037d0| 6f 75 6e 64 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |ound, ot|herwise |
|000037e0| 73 65 74 20 74 68 65 20 | 76 6f 6c 75 6d 65 20 74 |set the |volume t|
|000037f0| 6f 20 33 2e 0d 49 66 20 | 4f 70 74 69 6f 6e 4b 65 |o 3..If |OptionKe|
|00003800| 79 0d 20 20 20 20 20 42 | 65 65 70 4c 65 76 65 6c |y. B|eepLevel|
|00003810| 20 3d 20 30 0d 45 6c 73 | 65 0d 20 20 20 20 20 42 | = 0.Els|e. B|
|00003820| 65 65 70 4c 65 76 65 6c | 20 3d 20 33 0d 45 6e 64 |eepLevel| = 3.End|
|00003830| 20 49 66 0d 42 65 65 70 | 0d 0d 53 65 65 20 41 6c | If.Beep|..See Al|
|00003840| 73 6f 0d 53 6f 75 6e 64 | 4c 65 76 65 6c 20 73 79 |so.Sound|Level sy|
|00003850| 73 74 65 6d 20 76 61 72 | 69 61 62 6c 65 2c 20 42 |stem var|iable, B|
|00003860| 65 65 70 20 63 6f 6d 6d | 61 6e 64 2c 20 53 6f 75 |eep comm|and, Sou|
|00003870| 6e 64 20 63 6f 6d 6d 61 | 6e 64 0d 0d 00 00 00 8e |nd comma|nd......|
|00003880| 00 07 00 00 00 00 00 0f | 00 0a 07 d2 00 9c 00 0c |........|........|
|00003890| 00 00 00 00 00 00 00 00 | 00 1b 00 0c 00 08 00 03 |........|........|
|000038a0| 01 9c 00 09 00 00 00 00 | 00 00 00 00 00 27 00 0c |........|.....'..|
|000038b0| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 01 9b 00 0c 00 08 00 03 | 01 9c 00 09 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 01 a4 00 0c | 00 08 00 03 00 9c 00 09 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 02 45 00 0c 00 08 00 03 |........|.E......|
|000038f0| 01 9c 00 09 00 00 00 00 | 00 00 00 00 02 4e 00 0c |........|.....N..|
|00003900| 00 08 00 03 00 9c 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 4d 30 42 75 74 74 6f 6e | 20 6f 62 6a 65 63 74 0d |M0Button| object.|
|00003920| 0d 44 65 73 63 72 69 70 | 74 69 6f 6e 0d 41 20 42 |.Descrip|tion.A B|
|00003930| 75 74 74 6f 6e 20 6f 62 | 6a 65 63 74 20 69 73 20 |utton ob|ject is |
|00003940| 61 20 62 75 74 74 6f 6e | 20 6f 6e 20 61 20 4f 6e |a button| on a On|
|00003950| 65 43 6c 69 63 6b 20 70 | 61 6c 65 74 74 65 2e 20 |eClick p|alette. |
|00003960| 54 68 65 20 42 75 74 74 | 6f 6e 20 70 72 6f 70 65 |The Butt|on prope|
|00003970| 72 74 69 65 73 20 6c 65 | 74 20 79 6f 75 20 61 63 |rties le|t you ac|
|00003980| 63 65 73 73 20 6f 72 20 | 63 68 61 6e 67 65 20 6e |cess or |change n|
|00003990| 65 61 72 6c 79 20 61 6c | 6c 20 74 68 65 20 70 72 |early al|l the pr|
|000039a0| 6f 70 65 72 74 69 65 73 | 20 6f 66 20 61 20 62 75 |operties| of a bu|
|000039b0| 74 74 6f 6e 20 74 68 61 | 74 20 79 6f 75 20 6e 6f |tton tha|t you no|
|000039c0| 72 6d 61 6c 6c 79 20 73 | 65 74 20 69 6e 20 74 68 |rmally s|et in th|
|000039d0| 65 20 42 75 74 74 6f 6e | 20 45 64 69 74 6f 72 2e |e Button| Editor.|
|000039e0| 20 59 6f 75 20 63 61 6e | 20 61 6c 73 6f 20 61 63 | You can| also ac|
|000039f0| 63 65 73 73 20 6f 72 20 | 63 68 61 6e 67 65 20 61 |cess or |change a|
|00003a00| 20 62 75 74 74 6f 6e d5 | 73 20 73 63 72 69 70 74 | button.|s script|
|00003a10| 20 75 73 69 6e 67 20 74 | 68 65 20 2e 53 63 72 69 | using t|he .Scri|
|00003a20| 70 74 20 70 72 6f 70 65 | 72 74 79 2c 20 61 6e 64 |pt prope|rty, and|
|00003a30| 20 79 6f 75 20 63 61 6e | 20 63 72 65 61 74 65 20 | you can| create |
|00003a40| 61 6e 64 20 64 65 6c 65 | 74 65 20 62 75 74 74 6f |and dele|te butto|
|00003a50| 6e 73 20 75 73 69 6e 67 | 20 74 68 65 20 2e 4e 65 |ns using| the .Ne|
|00003a60| 77 20 61 6e 64 20 2e 44 | 65 6c 65 74 65 20 6d 65 |w and .D|elete me|
|00003a70| 73 73 61 67 65 73 2e 0d | 0d 59 6f 75 20 63 61 6e |ssages..|.You can|
|00003a80| 20 73 70 65 63 69 66 79 | 20 61 20 62 75 74 74 6f | specify| a butto|
|00003a90| 6e 20 65 69 74 68 65 72 | 20 62 79 20 6e 61 6d 65 |n either| by name|
|00003aa0| 20 6f 72 20 62 79 20 6e | 75 6d 62 65 72 2e 20 53 | or by n|umber. S|
|00003ab0| 70 65 63 69 66 79 69 6e | 67 20 62 79 20 6e 61 6d |pecifyin|g by nam|
|00003ac0| 65 20 6c 65 74 73 20 79 | 6f 75 20 70 65 72 66 6f |e lets y|ou perfo|
|00003ad0| 72 6d 20 61 6e 20 6f 70 | 65 72 61 74 69 6f 6e 20 |rm an op|eration |
|00003ae0| 6f 6e 20 61 20 73 70 65 | 63 69 66 69 63 20 62 75 |on a spe|cific bu|
|00003af0| 74 74 6f 6e 20 74 68 61 | 74 20 79 6f 75 20 61 6c |tton tha|t you al|
|00003b00| 72 65 61 64 79 20 6b 6e | 6f 77 20 74 68 65 20 6e |ready kn|ow the n|
|00003b10| 61 6d 65 20 6f 66 2e 20 | 53 70 65 63 69 66 79 69 |ame of. |Specifyi|
|00003b20| 6e 67 20 62 79 20 6e 75 | 6d 62 65 72 20 6c 65 74 |ng by nu|mber let|
|00003b30| 73 20 79 6f 75 20 6c 6f | 6f 70 20 74 68 72 6f 75 |s you lo|op throu|
|00003b40| 67 68 20 61 6c 6c 20 74 | 68 65 20 62 75 74 74 6f |gh all t|he butto|
|00003b50| 6e 73 20 6f 6e 20 61 20 | 70 61 6c 65 74 74 65 20 |ns on a |palette |
|00003b60| 61 6e 64 20 70 65 72 66 | 6f 72 6d 20 6f 70 65 72 |and perf|orm oper|
|00003b70| 61 74 69 6f 6e 73 20 6f | 6e 20 65 61 63 68 20 6f |ations o|n each o|
|00003b80| 66 20 74 68 65 6d 20 69 | 6e 20 73 65 71 75 65 6e |f them i|n sequen|
|00003b90| 63 65 2e 20 42 75 74 74 | 6f 6e 73 20 61 72 65 20 |ce. Butt|ons are |
|00003ba0| 6e 75 6d 62 65 72 65 64 | 20 31 20 74 6f 20 4e 2c |numbered| 1 to N,|
|00003bb0| 20 77 68 65 72 65 20 4e | 20 69 73 20 74 68 65 20 | where N| is the |
|00003bc0| 74 6f 74 61 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 |total nu|mber of |
|00003bd0| 62 75 74 74 6f 6e 73 20 | 6f 6e 20 74 68 65 20 70 |buttons |on the p|
|00003be0| 61 6c 65 74 74 65 2e 20 | 54 68 65 20 6e 75 6d 62 |alette. |The numb|
|00003bf0| 65 72 69 6e 67 20 73 65 | 71 75 65 6e 63 65 20 69 |ering se|quence i|
|00003c00| 73 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 74 68 |s the sa|me as th|
|00003c10| 65 20 63 72 65 61 74 69 | 6f 6e 20 6f 72 64 65 72 |e creati|on order|
|00003c20| 20 6f 66 20 74 68 65 20 | 62 75 74 74 6f 6e 73 20 | of the |buttons |
|00003c30| 28 31 20 62 65 69 6e 67 | 20 74 68 65 20 6f 6c 64 |(1 being| the old|
|00003c40| 65 73 74 2c 20 4e 20 62 | 65 69 6e 67 20 74 68 65 |est, N b|eing the|
|00003c50| 20 6e 65 77 65 73 74 29 | 2e 0d 0d 42 75 74 74 6f | newest)|...Butto|
|00003c60| 6e 28 d0 31 29 20 72 65 | 66 65 72 73 20 74 6f 20 |n(.1) re|fers to |
|00003c70| 74 68 65 20 62 75 74 74 | 6f 6e 20 63 75 72 72 65 |the butt|on curre|
|00003c80| 6e 74 6c 79 20 75 6e 64 | 65 72 20 74 68 65 20 63 |ntly und|er the c|
|00003c90| 75 72 73 6f 72 2e 20 41 | 20 73 63 68 65 64 75 6c |ursor. A| schedul|
|00003ca0| 65 64 20 73 63 72 69 70 | 74 20 63 6f 75 6c 64 20 |ed scrip|t could |
|00003cb0| 63 68 65 63 6b 20 74 6f | 20 73 65 65 20 77 68 69 |check to| see whi|
|00003cc0| 63 68 20 62 75 74 74 6f | 6e 20 69 73 20 75 6e 64 |ch butto|n is und|
|00003cd0| 65 72 20 74 68 65 20 63 | 75 72 73 6f 72 2c 20 69 |er the c|ursor, i|
|00003ce0| 66 20 61 6e 79 2c 20 61 | 6e 64 20 70 65 72 66 6f |f any, a|nd perfo|
|00003cf0| 72 6d 20 73 6f 6d 65 20 | 61 63 74 69 6f 6e 20 28 |rm some |action (|
|00003d00| 73 75 63 68 20 61 73 20 | 64 69 73 70 6c 61 79 20 |such as |display |
|00003d10| 61 20 68 65 6c 70 20 6d | 65 73 73 61 67 65 29 20 |a help m|essage) |
|00003d20| 66 6f 72 20 74 68 65 20 | 62 75 74 74 6f 6e 20 79 |for the |button y|
|00003d30| 6f 75 d5 72 65 20 70 6f | 69 6e 74 69 6e 67 20 74 |ou.re po|inting t|
|00003d40| 6f 2e 0d 0d 49 66 20 79 | 6f 75 20 6f 6d 69 74 20 |o...If y|ou omit |
|00003d50| 74 68 65 20 73 70 65 63 | 69 66 69 65 72 20 70 61 |the spec|ifier pa|
|00003d60| 72 74 20 6f 66 20 74 68 | 65 20 42 75 74 74 6f 6e |rt of th|e Button|
|00003d70| 20 6f 62 6a 65 63 74 2c | 20 74 68 65 6e 20 74 68 | object,| then th|
|00003d80| 65 20 6f 62 6a 65 63 74 | 20 69 73 20 61 73 73 75 |e object| is assu|
|00003d90| 6d 65 64 20 74 6f 20 62 | 65 20 74 68 65 20 62 75 |med to b|e the bu|
|00003da0| 74 74 6f 6e 20 74 68 61 | 74 20 77 61 73 20 63 6c |tton tha|t was cl|
|00003db0| 69 63 6b 65 64 20 28 74 | 68 65 20 62 75 74 74 6f |icked (t|he butto|
|00003dc0| 6e 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 74 68 65 |n contai|ning the|
|00003dd0| 20 72 75 6e 6e 69 6e 67 | 20 73 63 72 69 70 74 29 | running| script)|
|00003de0| 2e 20 41 6c 73 6f 2c 20 | 4f 6e 65 43 6c 69 63 6b |. Also, |OneClick|
|00003df0| 20 61 73 73 75 6d 65 73 | 20 74 68 65 20 73 70 65 | assumes| the spe|
|00003e00| 63 69 66 69 65 64 20 62 | 75 74 74 6f 6e 20 69 73 |cified b|utton is|
|00003e10| 20 6f 6e 20 74 68 65 20 | 73 61 6d 65 20 70 61 6c | on the |same pal|
|00003e20| 65 74 74 65 20 61 73 20 | 74 68 65 20 62 75 74 74 |ette as |the butt|
|00003e30| 6f 6e 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 |on conta|ining th|
|00003e40| 65 20 72 75 6e 6e 69 6e | 67 20 73 63 72 69 70 74 |e runnin|g script|
|00003e50| 2e 20 54 6f 20 73 70 65 | 63 69 66 79 20 61 20 62 |. To spe|cify a b|
|00003e60| 75 74 74 6f 6e 20 6f 6e | 20 61 20 64 69 66 66 65 |utton on| a diffe|
|00003e70| 72 65 6e 74 20 70 61 6c | 65 74 74 65 2c 20 73 70 |rent pal|ette, sp|
|00003e80| 65 63 69 66 79 20 61 20 | 70 61 6c 65 74 74 65 20 |ecify a |palette |
|00003e90| 6f 62 6a 65 63 74 20 75 | 73 69 6e 67 20 74 68 69 |object u|sing thi|
|00003ea0| 73 20 66 6f 72 6d 61 74 | 3a 0d 0d 50 61 6c 65 74 |s format|:..Palet|
|00003eb0| 74 65 28 70 61 6c 65 74 | 74 65 2d 73 70 65 63 69 |te(palet|te-speci|
|00003ec0| 66 69 65 72 29 2e 42 75 | 74 74 6f 6e 28 62 75 74 |fier).Bu|tton(but|
|00003ed0| 74 6f 6e 2d 73 70 65 63 | 69 66 69 65 72 29 2e 50 |ton-spec|ifier).P|
|00003ee0| 72 6f 70 65 72 74 79 0d | 0d 2e 42 6f 72 64 65 72 |roperty.|..Border|
|00003ef0| 0d 47 65 74 73 20 6f 72 | 20 73 65 74 73 20 74 68 |.Gets or| sets th|
|00003f00| 65 20 62 75 74 74 6f 6e | d5 73 20 62 6f 72 64 65 |e button|.s borde|
|00003f10| 72 20 73 74 79 6c 65 2e | 20 54 68 65 72 65 20 61 |r style.| There a|
|00003f20| 72 65 20 31 32 20 62 6f | 72 64 65 72 20 73 74 79 |re 12 bo|rder sty|
|00003f30| 6c 65 73 20 6e 75 6d 62 | 65 72 65 64 20 30 20 74 |les numb|ered 0 t|
|00003f40| 68 72 6f 75 67 68 20 31 | 31 20 77 68 69 63 68 20 |hrough 1|1 which |
|00003f50| 63 6f 72 72 65 73 70 6f | 6e 64 20 74 6f 20 74 68 |correspo|nd to th|
|00003f60| 65 20 63 68 6f 69 63 65 | 73 20 69 6e 20 74 68 65 |e choice|s in the|
|00003f70| 20 42 6f 72 64 65 72 20 | 70 6f 70 2d 75 70 20 6d | Border |pop-up m|
|00003f80| 65 6e 75 2e 20 46 6f 72 | 20 61 20 64 69 61 67 72 |enu. For| a diagr|
|00003f90| 61 6d 20 6f 66 20 74 68 | 65 20 62 75 74 74 6f 6e |am of th|e button|
|00003fa0| 20 73 74 79 6c 65 73 20 | 61 6e 64 20 74 68 65 69 | styles |and thei|
|00003fb0| 72 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |r corres|ponding |
|00003fc0| 73 79 6c 65 20 6e 75 6d | 62 65 72 73 2c 20 73 65 |syle num|bers, se|
|00003fd0| 65 20 2e 42 6f 72 64 65 | 72 20 6f 6e 20 70 61 67 |e .Borde|r on pag|
|00003fe0| 65 20 31 35 30 20 69 6e | 20 74 68 65 20 4f 6e 65 |e 150 in| the One|
|00003ff0| 43 6c 69 63 6b 20 41 75 | 74 68 6f 72 69 6e 67 20 |Click Au|thoring |
|00004000| 47 75 69 64 65 2e 0d 0d | 53 65 74 74 69 6e 67 20 |Guide...|Setting |
|00004010| 74 68 65 20 2e 42 6f 72 | 64 65 72 20 76 61 6c 75 |the .Bor|der valu|
|00004020| 65 20 74 6f 20 33 20 72 | 65 6d 6f 76 65 73 20 74 |e to 3 r|emoves t|
|00004030| 68 65 20 62 6f 72 64 65 | 72 2e 20 54 6f 20 6d 61 |he borde|r. To ma|
|00004040| 6b 65 20 74 68 65 20 62 | 75 74 74 6f 6e 20 61 70 |ke the b|utton ap|
|00004050| 70 65 61 72 20 77 69 74 | 68 6f 75 74 20 61 20 66 |pear wit|hout a f|
|00004060| 61 63 65 20 6f 72 20 62 | 6f 72 64 65 72 20 28 73 |ace or b|order (s|
|00004070| 6f 20 6f 6e 6c 79 20 74 | 68 65 20 69 63 6f 6e 20 |o only t|he icon |
|00004080| 6f 72 20 74 65 78 74 20 | 61 70 70 65 61 72 73 2c |or text |appears,|
|00004090| 20 6f 72 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 | or to c|reate a |
|000040a0| 74 72 61 6e 73 70 61 72 | 65 6e 74 20 68 6f 74 73 |transpar|ent hots|
|000040b0| 70 6f 74 20 6f 6e 20 61 | 20 70 61 6c 65 74 74 65 |pot on a| palette|
|000040c0| 29 2c 20 73 65 74 20 2e | 42 6f 72 64 65 72 20 74 |), set .|Border t|
|000040d0| 6f 20 33 20 61 6e 64 20 | 2e 43 6f 6c 6f 72 20 74 |o 3 and |.Color t|
|000040e0| 6f 20 30 2e 0d 0d 2e 43 | 6f 6c 6f 72 0d 47 65 74 |o 0....C|olor.Get|
|000040f0| 73 20 6f 72 20 73 65 74 | 73 20 74 68 65 20 62 75 |s or set|s the bu|
|00004100| 74 74 6f 6e d5 73 20 63 | 6f 6c 6f 72 2e 20 43 6f |tton.s c|olor. Co|
|00004110| 6c 6f 72 73 20 61 72 65 | 20 6e 75 6d 62 65 72 65 |lors are| numbere|
|00004120| 64 20 31 d0 32 35 36 2e | 20 54 6f 20 64 65 74 65 |d 1.256.| To dete|
|00004130| 72 6d 69 6e 65 20 61 20 | 63 6f 6c 6f 72 d5 73 20 |rmine a |color.s |
|00004140| 6e 75 6d 62 65 72 2c 20 | 64 72 61 67 20 74 68 65 |number, |drag the|
|00004150| 20 6d 6f 75 73 65 20 6f | 76 65 72 20 61 20 63 6f | mouse o|ver a co|
|00004160| 6c 6f 72 20 69 6e 20 61 | 20 43 6f 6c 6f 72 20 70 |lor in a| Color p|
|00004170| 6f 70 2d 75 70 20 6d 65 | 6e 75 20 28 69 6e 20 74 |op-up me|nu (in t|
|00004180| 68 65 20 42 75 74 74 6f | 6e 20 45 64 69 74 6f 72 |he Butto|n Editor|
|00004190| 29 20 61 6e 64 20 6c 6f | 6f 6b 20 61 74 20 74 68 |) and lo|ok at th|
|000041a0| 65 20 6e 75 6d 62 65 72 | 20 69 6e 20 74 68 65 20 |e number| in the |
|000041b0| 62 6f 74 74 6f 6d 2d 72 | 69 67 68 74 20 63 6f 72 |bottom-r|ight cor|
|000041c0| 6e 65 72 20 6f 66 20 74 | 68 65 20 6d 65 6e 75 2e |ner of t|he menu.|
|000041d0| 0d 0d 53 65 74 74 69 6e | 67 20 74 68 65 20 63 6f |..Settin|g the co|
|000041e0| 6c 6f 72 20 74 6f 20 30 | 20 72 65 6d 6f 76 65 73 |lor to 0| removes|
|000041f0| 20 74 68 65 20 62 75 74 | 74 6f 6e d5 73 20 63 6f | the but|ton.s co|
|00004200| 6c 6f 72 20 61 6e 64 20 | 6d 61 6b 65 73 20 74 68 |lor and |makes th|
|00004210| 65 20 62 75 74 74 6f 6e | 20 74 72 61 6e 73 70 61 |e button| transpa|
|00004220| 72 65 6e 74 2c 20 61 6c | 6c 6f 77 69 6e 67 20 74 |rent, al|lowing t|
|00004230| 68 65 20 70 61 6c 65 74 | 74 65 d5 73 20 62 61 63 |he palet|te.s bac|
|00004240| 6b 67 72 6f 75 6e 64 20 | 74 6f 20 73 68 6f 77 20 |kground |to show |
|00004250| 74 68 72 6f 75 67 68 20 | 28 74 68 65 20 73 61 6d |through |(the sam|
|00004260| 65 20 61 73 20 75 6e 63 | 68 65 63 6b 69 6e 67 20 |e as unc|hecking |
|00004270| 74 68 65 20 43 6f 6c 6f | 72 20 63 68 65 63 6b 62 |the Colo|r checkb|
|00004280| 6f 78 20 69 6e 20 74 68 | 65 20 42 75 74 74 6f 6e |ox in th|e Button|
|00004290| 20 45 64 69 74 6f 72 29 | 2e 20 53 65 74 74 69 6e | Editor)|. Settin|
|000042a0| 67 20 74 68 65 20 62 75 | 74 74 6f 6e d5 73 20 2e |g the bu|tton.s .|
|000042b0| 43 6f 6c 6f 72 20 74 6f | 20 61 20 76 61 6c 75 65 |Color to| a value|
|000042c0| 20 31 d0 32 35 36 20 61 | 6c 73 6f 20 63 68 65 63 | 1.256 a|lso chec|
|000042d0| 6b 73 20 74 68 65 20 43 | 6f 6c 6f 72 20 63 68 65 |ks the C|olor che|
|000042e0| 63 6b 62 6f 78 20 69 6e | 20 74 68 65 20 42 75 74 |ckbox in| the But|
|000042f0| 74 6f 6e 20 45 64 69 74 | 6f 72 2e 0d 0d 2e 43 6f |ton Edit|or....Co|
|00004300| 75 6e 74 0d 47 65 74 73 | 20 74 68 65 20 74 6f 74 |unt.Gets| the tot|
|00004310| 61 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 62 75 74 |al numbe|r of but|
|00004320| 74 6f 6e 73 20 6f 6e 20 | 74 68 65 20 70 61 6c 65 |tons on |the pale|
|00004330| 74 74 65 20 28 61 20 73 | 68 6f 72 74 63 75 74 20 |tte (a s|hortcut |
|00004340| 66 6f 72 20 75 73 69 6e | 67 20 4c 69 73 74 43 6f |for usin|g ListCo|
|00004350| 75 6e 74 20 42 75 74 74 | 6f 6e 2e 4c 69 73 74 29 |unt Butt|on.List)|
|00004360| 2e 20 4e 6f 20 62 75 74 | 74 6f 6e 20 73 70 65 63 |. No but|ton spec|
|00004370| 69 66 69 65 72 20 69 73 | 20 6e 65 63 65 73 73 61 |ifier is| necessa|
|00004380| 72 79 2e 20 54 68 69 73 | 20 70 72 6f 70 65 72 74 |ry. This| propert|
|00004390| 79 20 69 73 20 72 65 61 | 64 2d 6f 6e 6c 79 2e 0d |y is rea|d-only..|
|000043a0| 0d 2f 2f 20 4c 6f 6f 70 | 20 74 68 72 6f 75 67 68 |.// Loop| through|
|000043b0| 20 61 6c 6c 20 74 68 65 | 20 62 75 74 74 6f 6e 73 | all the| buttons|
|000043c0| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 74 68 65 6d | and cha|nge them|
|000043d0| 20 74 6f 20 61 20 6c 69 | 67 68 74 20 70 75 72 70 | to a li|ght purp|
|000043e0| 6c 65 20 63 6f 6c 6f 72 | 2e 0d 56 61 72 69 61 62 |le color|..Variab|
|000043f0| 6c 65 20 58 0d 46 6f 72 | 20 58 20 3d 20 31 20 74 |le X.For| X = 1 t|
|00004400| 6f 20 42 75 74 74 6f 6e | 2e 43 6f 75 6e 74 0d 20 |o Button|.Count. |
|00004410| 20 20 20 20 42 75 74 74 | 6f 6e 28 58 29 2e 43 6f | Butt|on(X).Co|
|00004420| 6c 6f 72 20 3d 20 34 33 | 0d 45 6e 64 20 46 6f 72 |lor = 43|.End For|
|00004430| 0d 0d 2e 44 61 74 61 0d | 47 65 74 73 20 6f 72 20 |...Data.|Gets or |
|00004440| 73 65 74 73 20 74 68 65 | 20 74 65 78 74 20 73 74 |sets the| text st|
|00004450| 6f 72 65 64 20 69 6e 20 | 74 68 65 20 62 75 74 74 |ored in |the butt|
|00004460| 6f 6e d5 73 20 64 61 74 | 61 20 70 72 6f 70 65 72 |on.s dat|a proper|
|00004470| 74 79 2e 20 54 68 65 20 | 2e 44 61 74 61 20 70 72 |ty. The |.Data pr|
|00004480| 6f 70 65 72 74 79 20 69 | 73 20 73 69 6d 69 6c 61 |operty i|s simila|
|00004490| 72 20 74 6f 20 61 20 73 | 74 61 74 69 63 20 76 61 |r to a s|tatic va|
|000044a0| 72 69 61 62 6c 65 d1 4f | 6e 65 43 6c 69 63 6b 20 |riable.O|neClick |
|000044b0| 73 74 6f 72 65 73 20 74 | 68 65 20 64 61 74 61 20 |stores t|he data |
|000044c0| 69 6e 20 74 68 65 20 70 | 61 6c 65 74 74 65 20 66 |in the p|alette f|
|000044d0| 69 6c 65 20 73 6f 20 69 | 74 20 64 6f 65 73 6e d5 |ile so i|t doesn.|
|000044e0| 74 20 67 65 74 20 6c 6f | 73 74 20 77 68 65 6e 20 |t get lo|st when |
|000044f0| 79 6f 75 20 72 65 73 74 | 61 72 74 20 6f 72 20 73 |you rest|art or s|
|00004500| 68 75 74 20 64 6f 77 6e | 2e 20 55 6e 6c 69 6b 65 |hut down|. Unlike|
|00004510| 20 73 74 61 74 69 63 73 | 2c 20 68 6f 77 65 76 65 | statics|, howeve|
|00004520| 72 2c 20 61 6e 79 20 62 | 75 74 74 6f 6e 20 63 61 |r, any b|utton ca|
|00004530| 6e 20 67 65 74 20 6f 72 | 20 73 65 74 20 61 6e 6f |n get or| set ano|
|00004540| 74 68 65 72 20 62 75 74 | 74 6f 6e d5 73 20 2e 44 |ther but|ton.s .D|
|00004550| 61 74 61 20 70 72 6f 70 | 65 72 74 79 2e 20 0d 0d |ata prop|erty. ..|
|00004560| 4c 69 6b 65 20 74 68 65 | 20 2e 54 65 78 74 20 61 |Like the| .Text a|
|00004570| 6e 64 20 2e 48 65 6c 70 | 20 70 72 6f 70 65 72 74 |nd .Help| propert|
|00004580| 69 65 73 2c 20 2e 44 61 | 74 61 20 61 6c 77 61 79 |ies, .Da|ta alway|
|00004590| 73 20 72 65 74 75 72 6e | 73 20 69 74 73 20 76 61 |s return|s its va|
|000045a0| 6c 75 65 20 61 73 20 61 | 20 74 65 78 74 20 76 61 |lue as a| text va|
|000045b0| 6c 75 65 2c 20 72 65 67 | 61 72 64 6c 65 73 73 20 |lue, reg|ardless |
|000045c0| 6f 66 20 77 68 65 74 68 | 65 72 20 79 6f 75 20 73 |of wheth|er you s|
|000045d0| 74 6f 72 65 64 20 61 20 | 74 65 78 74 20 6f 72 20 |tored a |text or |
|000045e0| 6e 75 6d 62 65 72 20 76 | 61 6c 75 65 2e 20 0d 0d |number v|alue. ..|
|000045f0| 2f 2f 20 41 73 6b 20 74 | 68 65 20 75 73 65 72 20 |// Ask t|he user |
|00004600| 74 6f 20 63 68 6f 6f 73 | 65 20 61 20 74 65 78 74 |to choos|e a text|
|00004610| 20 66 69 6c 65 2c 20 74 | 68 65 6e 20 73 74 6f 72 | file, t|hen stor|
|00004620| 65 20 74 68 65 20 70 61 | 74 68 20 74 6f 20 74 68 |e the pa|th to th|
|00004630| 61 74 20 66 69 6c 65 20 | 69 6e 20 74 68 65 20 62 |at file |in the b|
|00004640| 75 74 74 6f 6e d5 73 20 | 2e 44 61 74 61 0d 49 66 |utton.s |.Data.If|
|00004650| 20 4e 4f 54 20 42 75 74 | 74 6f 6e 2e 44 61 74 61 | NOT But|ton.Data|
|00004660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004670| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 20 6e 6f 74 | | // not|
|00004680| 68 69 6e 67 20 73 74 6f | 72 65 64 20 79 65 74 0d |hing sto|red yet.|
|00004690| 20 20 20 20 20 42 75 74 | 74 6f 6e 2e 44 61 74 61 | But|ton.Data|
|000046a0| 20 3d 20 41 73 6b 46 69 | 6c 65 20 22 54 45 58 54 | = AskFi|le "TEXT|
|000046b0| 22 2c 20 22 43 68 6f 6f | 73 65 20 61 20 74 65 78 |", "Choo|se a tex|
|000046c0| 74 20 66 69 6c 65 3a 22 | 0d 45 6c 73 65 20 20 20 |t file:"|.Else |
|000046d0| 20 20 20 2f 2f 20 4f 70 | 65 6e 20 74 68 65 20 66 | // Op|en the f|
|000046e0| 69 6c 65 0d 20 20 20 20 | 20 4f 70 65 6e 20 42 75 |ile. | Open Bu|
|000046f0| 74 74 6f 6e 2e 44 61 74 | 61 0d 45 6e 64 20 49 66 |tton.Dat|a.End If|
|00004700| 20 0d 0d 2f 2f 20 43 6c | 65 61 72 20 61 6c 6c 20 | ..// Cl|ear all |
|00004710| 73 74 6f 72 65 64 20 2e | 44 61 74 61 20 69 6e 20 |stored .|Data in |
|00004720| 65 76 65 72 79 20 62 75 | 74 74 6f 6e 20 6f 6e 20 |every bu|tton on |
|00004730| 74 68 65 20 70 61 6c 65 | 74 74 65 0d 56 61 72 69 |the pale|tte.Vari|
|00004740| 61 62 6c 65 20 58 0d 46 | 6f 72 20 58 20 3d 20 31 |able X.F|or X = 1|
|00004750| 20 74 6f 20 42 75 74 74 | 6f 6e 2e 43 6f 75 6e 74 | to Butt|on.Count|
|00004760| 0d 20 20 20 20 20 42 75 | 74 74 6f 6e 28 58 29 2e |. Bu|tton(X).|
|00004770| 44 61 74 61 20 3d 20 22 | 22 0d 45 6e 64 20 46 6f |Data = "|".End Fo|
|00004780| 72 0d 0d 2e 44 65 6c 65 | 74 65 0d 54 68 65 20 2e |r...Dele|te.The .|
|00004790| 44 65 6c 65 74 65 20 6d | 65 73 73 61 67 65 20 70 |Delete m|essage p|
|000047a0| 65 72 6d 61 6e 65 6e 74 | 6c 79 20 64 65 6c 65 74 |ermanent|ly delet|
|000047b0| 65 73 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |es the s|pecified|
|000047c0| 20 62 75 74 74 6f 6e 20 | 66 72 6f 6d 20 74 68 65 | button |from the|
|000047d0| 20 70 61 6c 65 74 74 65 | 2e 20 54 68 65 20 62 75 | palette|. The bu|
|000047e0| 74 74 6f 6e 20 73 70 65 | 63 69 66 69 65 72 20 69 |tton spe|cifier i|
|000047f0| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00004800| 65 20 62 75 74 74 6f 6e | 20 74 6f 20 64 65 6c 65 |e button| to dele|
|00004810| 74 65 2e 20 49 66 20 79 | 6f 75 20 64 6f 6e d5 74 |te. If y|ou don.t|
|00004820| 20 73 70 65 63 69 66 79 | 20 61 20 62 75 74 74 6f | specify| a butto|
|00004830| 6e 2c 20 74 68 65 20 62 | 75 74 74 6f 6e 20 63 6f |n, the b|utton co|
|00004840| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 73 63 72 |ntaining| the scr|
|00004850| 69 70 74 20 69 73 20 64 | 65 6c 65 74 65 64 20 61 |ipt is d|eleted a|
|00004860| 6e 64 20 74 68 65 20 73 | 63 72 69 70 74 20 73 74 |nd the s|cript st|
|00004870| 6f 70 73 20 72 75 6e 6e | 69 6e 67 2e 20 54 6f 20 |ops runn|ing. To |
|00004880| 64 65 6c 65 74 65 20 61 | 20 62 75 74 74 6f 6e 20 |delete a| button |
|00004890| 6f 6e 20 61 6e 6f 74 68 | 65 72 20 70 61 6c 65 74 |on anoth|er palet|
|000048a0| 74 65 2c 20 69 6e 63 6c | 75 64 65 20 61 20 70 61 |te, incl|ude a pa|
|000048b0| 6c 65 74 74 65 20 73 70 | 65 63 69 66 69 65 72 20 |lette sp|ecifier |
|000048c0| 62 65 66 6f 72 65 20 74 | 68 65 20 62 75 74 74 6f |before t|he butto|
|000048d0| 6e 20 73 70 65 63 69 66 | 69 65 72 2e 0d 0d 2f 2f |n specif|ier...//|
|000048e0| 20 44 65 6c 65 74 65 20 | 74 68 65 20 62 75 74 74 | Delete |the butt|
|000048f0| 6f 6e 20 6e 61 6d 65 64 | 20 22 54 69 6c 65 20 57 |on named| "Tile W|
|00004900| 69 6e 64 6f 77 73 22 0d | 42 75 74 74 6f 6e 28 22 |indows".|Button("|
|00004910| 54 69 6c 65 20 57 69 6e | 64 6f 77 73 22 29 2e 44 |Tile Win|dows").D|
|00004920| 65 6c 65 74 65 0d 0d 2f | 2f 20 44 65 6c 65 74 65 |elete../|/ Delete|
|00004930| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 6e 61 6d 65 | the but|ton name|
|00004940| 64 20 22 4f 70 65 6e 20 | 54 65 78 74 20 45 64 69 |d "Open |Text Edi|
|00004950| 74 6f 72 22 20 6f 6e 20 | 74 68 65 20 70 61 6c 65 |tor" on |the pale|
|00004960| 74 74 65 20 6e 61 6d 65 | 64 20 22 54 6f 6f 6c 73 |tte name|d "Tools|
|00004970| 22 0d 50 61 6c 65 74 74 | 65 28 22 54 6f 6f 6c 73 |".Palett|e("Tools|
|00004980| 22 29 2e 42 75 74 74 6f | 6e 28 22 4f 70 65 6e 20 |").Butto|n("Open |
|00004990| 54 65 78 74 20 45 64 69 | 74 6f 72 22 29 2e 44 65 |Text Edi|tor").De|
|000049a0| 6c 65 74 65 0d 0d 2f 2f | 20 44 65 6c 65 74 65 20 |lete..//| Delete |
|000049b0| 61 6c 6c 20 74 68 65 20 | 62 75 74 74 6f 6e 73 20 |all the |buttons |
|000049c0| 6f 6e 20 74 68 65 20 70 | 61 6c 65 74 74 65 20 6e |on the p|alette n|
|000049d0| 61 6d 65 64 20 22 43 6f | 6f 6c 20 42 75 74 74 6f |amed "Co|ol Butto|
|000049e0| 6e 73 22 0d 56 61 72 69 | 61 62 6c 65 20 58 2c 20 |ns".Vari|able X, |
|000049f0| 6e 75 6d 42 75 74 74 6f | 6e 73 0d 6e 75 6d 42 75 |numButto|ns.numBu|
|00004a00| 74 74 6f 6e 73 20 3d 20 | 50 61 6c 65 74 74 65 28 |ttons = |Palette(|
|00004a10| 22 43 6f 6f 6c 20 42 75 | 74 74 6f 6e 73 22 29 2e |"Cool Bu|ttons").|
|00004a20| 42 75 74 74 6f 6e 2e 43 | 6f 75 6e 74 0d 46 6f 72 |Button.C|ount.For|
|00004a30| 20 58 20 3d 20 31 20 74 | 6f 20 6e 75 6d 42 75 74 | X = 1 t|o numBut|
|00004a40| 74 6f 6e 73 0d 20 20 20 | 20 20 50 61 6c 65 74 74 |tons. | Palett|
|00004a50| 65 28 22 43 6f 6f 6c 20 | 42 75 74 74 6f 6e 73 22 |e("Cool |Buttons"|
|00004a60| 29 2e 42 75 74 74 6f 6e | 28 58 29 2e 44 65 6c 65 |).Button|(X).Dele|
|00004a70| 74 65 0d 45 6e 64 20 46 | 6f 72 0d 0d 2e 44 72 61 |te.End F|or...Dra|
|00004a80| 67 0d 4c 65 74 73 20 79 | 6f 75 20 64 72 61 67 20 |g.Lets y|ou drag |
|00004a90| 61 20 62 75 74 74 6f 6e | 20 61 6e 79 77 68 65 72 |a button| anywher|
|00004aa0| 65 20 6f 6e 20 74 68 65 | 20 70 61 6c 65 74 74 65 |e on the| palette|
|00004ab0| 20 74 6f 20 72 65 70 6f | 73 69 74 69 6f 6e 20 74 | to repo|sition t|
|00004ac0| 68 65 20 62 75 74 74 6f | 6e 20 77 69 74 68 6f 75 |he butto|n withou|
|00004ad0| 74 20 6f 70 65 6e 69 6e | 67 20 74 68 65 20 4f 6e |t openin|g the On|
|00004ae0| 65 43 6c 69 63 6b 20 45 | 64 69 74 6f 72 2e 20 54 |eClick E|ditor. T|
|00004af0| 68 65 20 64 72 61 67 67 | 65 64 20 62 75 74 74 6f |he dragg|ed butto|
|00004b00| 6e 20 73 6e 61 70 73 20 | 74 6f 20 74 68 65 20 70 |n snaps |to the p|
|00004b10| 61 6c 65 74 74 65 d5 73 | 20 67 72 69 64 20 73 65 |alette.s| grid se|
|00004b20| 74 74 69 6e 67 73 2e 20 | 44 72 61 67 67 69 6e 67 |ttings. |Dragging|
|00004b30| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 70 61 6c 65 | to anot|her pale|
|00004b40| 74 74 65 20 63 6f 70 69 | 65 73 20 74 68 65 20 62 |tte copi|es the b|
|00004b50| 75 74 74 6f 6e 20 74 6f | 20 74 68 61 74 20 70 61 |utton to| that pa|
|00004b60| 6c 65 74 74 65 2e 20 0d | 0d 54 68 65 20 2e 44 72 |lette. .|.The .Dr|
|00004b70| 61 67 20 6d 65 73 73 61 | 67 65 20 77 6f 72 6b 73 |ag messa|ge works|
|00004b80| 20 6f 6e 6c 79 20 69 6e | 20 61 20 4d 6f 75 73 65 | only in| a Mouse|
|00004b90| 44 6f 77 6e 20 68 61 6e | 64 6c 65 72 2e 20 57 68 |Down han|dler. Wh|
|00004ba0| 65 6e 20 75 73 65 64 20 | 61 73 20 61 20 70 72 6f |en used |as a pro|
|00004bb0| 70 65 72 74 79 2c 20 2e | 44 72 61 67 20 72 65 74 |perty, .|Drag ret|
|00004bc0| 75 72 6e 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |urns the| name of|
|00004bd0| 20 74 68 65 20 70 61 6c | 65 74 74 65 20 77 68 65 | the pal|ette whe|
|00004be0| 72 65 20 74 68 65 20 62 | 75 74 74 6f 6e 20 77 61 |re the b|utton wa|
|00004bf0| 73 20 64 72 6f 70 70 65 | 64 2e 0d 0d 2f 2f 20 41 |s droppe|d...// A|
|00004c00| 6c 6c 6f 77 20 61 20 62 | 75 74 74 6f 6e 20 74 6f |llow a b|utton to|
|00004c10| 20 62 65 20 64 72 61 67 | 67 65 64 20 74 6f 20 61 | be drag|ged to a|
|00004c20| 20 6e 65 77 20 6c 6f 63 | 61 74 69 6f 6e 20 69 66 | new loc|ation if|
|00004c30| 20 74 68 65 20 43 6f 6d | 6d 61 6e 64 20 6b 65 79 | the Com|mand key|
|00004c40| 20 69 73 20 68 65 6c 64 | 20 64 6f 77 6e 0d 4f 6e | is held| down.On|
|00004c50| 20 4d 6f 75 73 65 44 6f | 77 6e 0d 20 20 20 20 20 | MouseDo|wn. |
|00004c60| 56 61 72 69 61 62 6c 65 | 20 6e 65 77 50 61 6c 65 |Variable| newPale|
|00004c70| 74 74 65 0d 20 20 20 20 | 20 49 66 20 43 6f 6d 6d |tte. | If Comm|
|00004c80| 61 6e 64 4b 65 79 0d 20 | 20 20 20 20 20 20 20 20 |andKey. | |
|00004c90| 20 6e 65 77 50 61 6c 65 | 74 74 65 20 3d 20 42 75 | newPale|tte = Bu|
|00004ca0| 74 74 6f 6e 2e 44 72 61 | 67 0d 20 20 20 20 20 45 |tton.Dra|g. E|
|00004cb0| 6c 73 65 20 0d 20 20 20 | 20 20 20 20 20 20 20 42 |lse . | B|
|00004cc0| 65 65 70 20 0d 20 20 20 | 20 20 45 6e 64 20 49 66 |eep . | End If|
|00004cd0| 20 0d 20 20 20 20 20 4d | 65 73 73 61 67 65 20 22 | . M|essage "|
|00004ce0| 42 75 74 74 6f 6e 20 77 | 61 73 20 64 72 61 67 67 |Button w|as dragg|
|00004cf0| 65 64 20 74 6f 20 70 61 | 6c 65 74 74 65 20 22 20 |ed to pa|lette " |
|00004d00| 26 20 6e 65 77 50 61 6c | 65 74 74 65 0d 45 6e 64 |& newPal|ette.End|
|00004d10| 20 4d 6f 75 73 65 44 6f | 77 6e 0d 0d 2e 45 78 69 | MouseDo|wn...Exi|
|00004d20| 73 74 73 0d 52 65 74 75 | 72 6e 73 20 54 72 75 65 |sts.Retu|rns True|
|00004d30| 20 28 31 29 20 69 66 20 | 74 68 65 20 73 70 65 63 | (1) if |the spec|
|00004d40| 69 66 69 65 64 20 62 75 | 74 74 6f 6e 20 65 78 69 |ified bu|tton exi|
|00004d50| 73 74 73 2c 20 6f 74 68 | 65 72 77 69 73 65 20 46 |sts, oth|erwise F|
|00004d60| 61 6c 73 65 20 28 30 29 | 2e 20 59 6f 75 20 63 61 |alse (0)|. You ca|
|00004d70| 6e 20 75 73 65 20 74 68 | 69 73 20 70 72 6f 70 65 |n use th|is prope|
|00004d80| 72 74 79 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |rty to d|etermine|
|00004d90| 20 69 66 20 61 20 62 75 | 74 74 6f 6e 20 65 78 69 | if a bu|tton exi|
|00004da0| 73 74 73 20 62 65 66 6f | 72 65 20 70 65 72 66 6f |sts befo|re perfo|
|00004db0| 72 6d 69 6e 67 20 73 6f | 6d 65 20 6f 74 68 65 72 |rming so|me other|
|00004dc0| 20 61 63 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 62 | action |on the b|
|00004dd0| 75 74 74 6f 6e 2e 0d 0d | 2f 2f 20 49 66 20 74 68 |utton...|// If th|
|00004de0| 65 20 62 75 74 74 6f 6e | 20 6e 61 6d 65 64 20 22 |e button| named "|
|00004df0| 53 77 69 74 63 68 65 72 | 22 20 65 78 69 73 74 73 |Switcher|" exists|
|00004e00| 2c 20 74 68 65 6e 20 63 | 68 61 6e 67 65 20 69 74 |, then c|hange it|
|00004e10| 73 20 63 6f 6c 6f 72 20 | 74 6f 20 72 65 64 2c 20 |s color |to red, |
|00004e20| 6f 74 68 65 72 77 69 73 | 65 0d 2f 2f 20 73 68 6f |otherwis|e.// sho|
|00004e30| 77 20 61 6e 20 65 72 72 | 6f 72 20 6d 65 73 73 61 |w an err|or messa|
|00004e40| 67 65 0d 49 66 20 42 75 | 74 74 6f 6e 28 22 53 77 |ge.If Bu|tton("Sw|
|00004e50| 69 74 63 68 65 72 22 29 | 2e 45 78 69 73 74 73 0d |itcher")|.Exists.|
|00004e60| 20 20 20 20 20 42 75 74 | 74 6f 6e 28 22 53 77 69 | But|ton("Swi|
|00004e70| 74 63 68 65 72 22 29 2e | 43 6f 6c 6f 72 20 3d 20 |tcher").|Color = |
|00004e80| 33 36 0d 45 6c 73 65 0d | 20 20 20 20 20 4d 65 73 |36.Else.| Mes|
|00004e90| 73 61 67 65 20 22 43 61 | 6e d5 74 20 66 69 6e 64 |sage "Ca|n.t find|
|00004ea0| 20 74 68 65 20 53 77 69 | 74 63 68 65 72 20 62 75 | the Swi|tcher bu|
|00004eb0| 74 74 6f 6e 22 0d 45 6e | 64 20 49 66 0d 0d 2f 2f |tton".En|d If..//|
|00004ec0| 20 49 66 20 74 68 65 20 | 62 75 74 74 6f 6e 20 6e | If the |button n|
|00004ed0| 61 6d 65 64 20 22 43 75 | 72 72 65 6e 74 20 54 61 |amed "Cu|rrent Ta|
|00004ee0| 73 6b 22 20 64 6f 65 73 | 6e d5 74 20 61 6c 72 65 |sk" does|n.t alre|
|00004ef0| 61 64 79 20 65 78 69 73 | 74 2c 20 74 68 65 6e 20 |ady exis|t, then |
|00004f00| 63 72 65 61 74 65 20 69 | 74 0d 49 66 20 4e 4f 54 |create i|t.If NOT|
|00004f10| 20 42 75 74 74 6f 6e 28 | 22 43 75 72 72 65 6e 74 | Button(|"Current|
|00004f20| 20 54 61 73 6b 22 29 2e | 45 78 69 73 74 73 0d 20 | Task").|Exists. |
|00004f30| 20 20 20 20 42 75 74 74 | 6f 6e 28 22 43 75 72 72 | Butt|on("Curr|
|00004f40| 65 6e 74 20 54 61 73 6b | 22 29 2e 4e 65 77 0d 45 |ent Task|").New.E|
|00004f50| 6e 64 20 49 66 0d 0d 2e | 48 65 69 67 68 74 0d 47 |nd If...|Height.G|
|00004f60| 65 74 73 20 6f 72 20 73 | 65 74 73 20 74 68 65 20 |ets or s|ets the |
|00004f70| 62 75 74 74 6f 6e d5 73 | 20 68 65 69 67 68 74 2e |button.s| height.|
|00004f80| 20 59 6f 75 20 63 61 6e | 20 73 65 74 20 74 68 65 | You can| set the|
|00004f90| 20 68 65 69 67 68 74 20 | 74 6f 20 31 20 74 6f 20 | height |to 1 to |
|00004fa0| 64 72 61 77 20 61 20 62 | 75 74 74 6f 6e 20 61 73 |draw a b|utton as|
|00004fb0| 20 61 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 6c 69 | a horiz|ontal li|
|00004fc0| 6e 65 2e 0d 0d 2f 2f 20 | 43 68 61 6e 67 65 20 74 |ne...// |Change t|
|00004fd0| 68 65 20 68 65 69 67 68 | 74 20 6f 66 20 74 68 65 |he heigh|t of the|
|00004fe0| 20 62 75 74 74 6f 6e 20 | 6e 61 6d 65 64 20 51 75 | button |named Qu|
|00004ff0| 69 63 6b 65 6e 20 74 6f | 20 32 32 0d 42 75 74 74 |icken to| 22.Butt|
|00005000| 6f 6e 28 22 51 75 69 63 | 6b 65 6e 22 29 2e 48 65 |on("Quic|ken").He|
|00005010| 69 67 68 74 20 3d 20 32 | 32 0d 0d 2e 48 65 6c 70 |ight = 2|2...Help|
|00005020| 0d 47 65 74 73 20 6f 72 | 20 73 65 74 73 20 74 68 |.Gets or| sets th|
|00005030| 65 20 62 75 74 74 6f 6e | d5 73 20 42 61 6c 6c 6f |e button|.s Ballo|
|00005040| 6f 6e 20 48 65 6c 70 20 | 6d 65 73 73 61 67 65 2e |on Help |message.|
|00005050| 20 54 68 65 72 65 20 69 | 73 20 6e 6f 20 6c 69 6d | There i|s no lim|
|00005060| 69 74 20 6f 6e 20 74 68 | 65 20 6c 65 6e 67 74 68 |it on th|e length|
|00005070| 20 6f 66 20 74 68 65 20 | 68 65 6c 70 20 6d 65 73 | of the |help mes|
|00005080| 73 61 67 65 2e 0d 0d 42 | 75 74 74 6f 6e 28 d2 51 |sage...B|utton(.Q|
|00005090| 75 69 63 6b 65 6e d3 29 | 2e 48 65 6c 70 20 3d 20 |uicken.)|.Help = |
|000050a0| d2 54 6f 20 6f 70 65 6e | 20 51 75 69 63 6b 65 6e |.To open| Quicken|
|000050b0| 2c 20 63 6c 69 63 6b 20 | 68 65 72 65 2e d3 0d 0d |, click |here....|
|000050c0| 2e 49 63 6f 6e 0d 47 65 | 74 73 20 6f 72 20 73 65 |.Icon.Ge|ts or se|
|000050d0| 74 73 20 74 68 65 20 62 | 75 74 74 6f 6e d5 73 20 |ts the b|utton.s |
|000050e0| 69 63 6f 6e 2e 20 53 70 | 65 63 69 66 79 20 61 20 |icon. Sp|ecify a |
|000050f0| 6e 75 6d 62 65 72 20 31 | d0 34 20 74 6f 20 73 65 |number 1|.4 to se|
|00005100| 74 20 74 68 65 20 62 75 | 74 74 6f 6e d5 73 20 69 |t the bu|tton.s i|
|00005110| 63 6f 6e 20 74 6f 20 6f | 6e 65 20 6f 66 20 74 68 |con to o|ne of th|
|00005120| 65 20 66 6f 75 72 20 73 | 74 6f 72 65 64 20 69 63 |e four s|tored ic|
|00005130| 6f 6e 73 2e 20 53 65 74 | 74 69 6e 67 20 2e 49 63 |ons. Set|ting .Ic|
|00005140| 6f 6e 20 74 6f 20 30 20 | 63 61 75 73 65 73 20 6e |on to 0 |causes n|
|00005150| 6f 20 69 63 6f 6e 20 74 | 6f 20 61 70 70 65 61 72 |o icon t|o appear|
|00005160| 20 6f 6e 20 74 68 65 20 | 62 75 74 74 6f 6e 2e 20 | on the |button. |
|00005170| 28 54 68 65 20 69 63 6f | 6e 20 69 73 6e d5 74 20 |(The ico|n isn.t |
|00005180| 64 65 6c 65 74 65 64 20 | 66 72 6f 6d 20 74 68 65 |deleted |from the|
|00005190| 20 62 75 74 74 6f 6e 3b | 20 69 74 20 6a 75 73 74 | button;| it just|
|000051a0| 20 64 6f 65 73 6e d5 74 | 20 61 70 70 65 61 72 2e | doesn.t| appear.|
|000051b0| 29 0d 0d 2f 2f 20 53 65 | 74 20 74 68 65 20 62 75 |)..// Se|t the bu|
|000051c0| 74 74 6f 6e d5 73 20 69 | 63 6f 6e 20 74 6f 20 69 |tton.s i|con to i|
|000051d0| 63 6f 6e 20 23 31 0d 42 | 75 74 74 6f 6e 2e 49 63 |con #1.B|utton.Ic|
|000051e0| 6f 6e 20 3d 20 31 0d 0d | 2f 2f 20 52 65 6d 6f 76 |on = 1..|// Remov|
|000051f0| 65 20 74 68 65 20 62 75 | 74 74 6f 6e d5 73 20 69 |e the bu|tton.s i|
|00005200| 63 6f 6e 0d 42 75 74 74 | 6f 6e 2e 49 63 6f 6e 20 |con.Butt|on.Icon |
|00005210| 3d 20 30 0d 0d 59 6f 75 | 20 63 61 6e 20 61 6c 73 |= 0..You| can als|
|00005220| 6f 20 63 6f 70 79 20 61 | 6e 20 69 63 6f 6e 20 66 |o copy a|n icon f|
|00005230| 72 6f 6d 20 6f 6e 65 20 | 62 75 74 74 6f 6e 20 74 |rom one |button t|
|00005240| 6f 20 61 6e 6f 74 68 65 | 72 20 62 75 74 74 6f 6e |o anothe|r button|
|00005250| 20 75 73 69 6e 67 20 74 | 68 65 20 66 6f 6c 6c 6f | using t|he follo|
|00005260| 77 69 6e 67 20 73 79 6e | 74 61 78 3a 0d 0d 42 75 |wing syn|tax:..Bu|
|00005270| 74 74 6f 6e 2e 49 63 6f | 6e 20 3d 20 69 63 6f 6e |tton.Ico|n = icon|
|00005280| 2d 6e 75 6d 62 65 72 2c | 20 42 75 74 74 6f 6e 28 |-number,| Button(|
|00005290| 62 75 74 74 6f 6e 2d 73 | 70 65 63 69 66 69 65 72 |button-s|pecifier|
|000052a0| 29 2e 49 63 6f 6e 0d 0d | 54 68 65 20 73 74 61 74 |).Icon..|The stat|
|000052b0| 65 6d 65 6e 74 20 63 6f | 70 69 65 73 20 74 68 65 |ement co|pies the|
|000052c0| 20 63 75 72 72 65 6e 74 | 6c 79 20 76 69 73 69 62 | current|ly visib|
|000052d0| 6c 65 20 69 63 6f 6e 20 | 66 72 6f 6d 20 74 68 65 |le icon |from the|
|000052e0| 20 73 70 65 63 69 66 69 | 65 64 20 62 75 74 74 6f | specifi|ed butto|
|000052f0| 6e 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |n to the| current|
|00005300| 20 62 75 74 74 6f 6e 2e | 20 49 63 6f 6e 2d 6e 75 | button.| Icon-nu|
|00005310| 6d 62 65 72 20 69 73 20 | 61 20 6e 75 6d 62 65 72 |mber is |a number|
|00005320| 20 31 d0 34 20 74 68 61 | 74 20 73 70 65 63 69 66 | 1.4 tha|t specif|
|00005330| 69 65 73 20 77 68 69 63 | 68 20 69 63 6f 6e 20 79 |ies whic|h icon y|
|00005340| 6f 75 20 77 61 6e 74 20 | 74 6f 20 63 6f 70 79 20 |ou want |to copy |
|00005350| 74 6f 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |to in th|e curren|
|00005360| 74 20 62 75 74 74 6f 6e | 2e 20 0d 0d 2f 2f 20 43 |t button|. ..// C|
|00005370| 6f 70 79 20 74 68 65 20 | 69 63 6f 6e 20 63 75 72 |opy the |icon cur|
|00005380| 72 65 6e 74 6c 79 20 61 | 70 70 65 61 72 69 6e 67 |rently a|ppearing|
|00005390| 20 6f 6e 20 74 68 65 20 | 43 68 6f 6f 73 65 72 20 | on the |Chooser |
|000053a0| 62 75 74 74 6f 6e 20 74 | 6f 20 74 68 69 73 20 62 |button t|o this b|
|000053b0| 75 74 74 6f 6e d5 73 20 | 69 63 6f 6e 20 23 32 0d |utton.s |icon #2.|
|000053c0| 42 75 74 74 6f 6e 2e 49 | 63 6f 6e 20 3d 20 32 2c |Button.I|con = 2,|
|000053d0| 20 42 75 74 74 6f 6e 28 | 22 43 68 6f 6f 73 65 72 | Button(|"Chooser|
|000053e0| 22 29 2e 49 63 6f 6e 0d | 0d 59 6f 75 20 63 61 6e |").Icon.|.You can|
|000053f0| 20 63 6f 70 79 20 61 20 | 31 36 2d 20 6f 72 20 33 | copy a |16- or 3|
|00005400| 32 2d 70 69 78 65 6c 20 | 69 63 6f 6e 20 66 72 6f |2-pixel |icon fro|
|00005410| 6d 20 61 20 66 69 6c 65 | d5 73 20 46 69 6e 64 65 |m a file|.s Finde|
|00005420| 72 20 69 63 6f 6e 20 74 | 6f 20 61 20 62 75 74 74 |r icon t|o a butt|
|00005430| 6f 6e d5 73 20 69 63 6f | 6e 20 75 73 69 6e 67 20 |on.s ico|n using |
|00005440| 74 68 69 73 20 73 79 6e | 74 61 78 3a 0d 0d 42 75 |this syn|tax:..Bu|
|00005450| 74 74 6f 6e 2e 49 63 6f | 6e 20 3d 20 69 63 6f 6e |tton.Ico|n = icon|
|00005460| 2d 6e 75 6d 62 65 72 2c | 20 70 61 74 68 20 5b 2c |-number,| path [,|
|00005470| 20 69 63 6f 6e 2d 73 69 | 7a 65 5d 0d 0d 50 61 74 | icon-si|ze]..Pat|
|00005480| 68 20 69 73 20 61 20 70 | 61 74 68 20 74 6f 20 61 |h is a p|ath to a|
|00005490| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 64 |n applic|ation, d|
|000054a0| 6f 63 75 6d 65 6e 74 2c | 20 66 6f 6c 64 65 72 2c |ocument,| folder,|
|000054b0| 20 6f 72 20 6f 74 68 65 | 72 20 46 69 6e 64 65 72 | or othe|r Finder|
|000054c0| 20 69 74 65 6d 2e 20 49 | 66 20 74 68 65 20 66 69 | item. I|f the fi|
|000054d0| 6c 65 20 79 6f 75 d5 72 | 65 20 63 6f 70 79 69 6e |le you.r|e copyin|
|000054e0| 67 20 61 6e 20 69 63 6f | 6e 20 66 72 6f 6d 20 68 |g an ico|n from h|
|000054f0| 61 73 20 61 20 63 75 73 | 74 6f 6d 20 69 63 6f 6e |as a cus|tom icon|
|00005500| 2c 20 4f 6e 65 43 6c 69 | 63 6b 20 63 6f 70 65 73 |, OneCli|ck copes|
|00005510| 20 74 68 65 20 63 75 73 | 74 6f 6d 20 69 63 6f 6e | the cus|tom icon|
|00005520| 2c 20 6e 6f 74 20 74 68 | 65 20 66 69 6c 65 d5 73 |, not th|e file.s|
|00005530| 20 6f 72 69 67 69 6e 61 | 6c 20 69 63 6f 6e 2e 20 | origina|l icon. |
|00005540| 49 63 6f 6e 2d 73 69 7a | 65 20 69 6e 64 69 63 61 |Icon-siz|e indica|
|00005550| 74 65 73 20 77 68 65 74 | 68 65 72 20 79 6f 75 20 |tes whet|her you |
|00005560| 77 61 6e 74 20 74 6f 20 | 63 6f 70 79 20 74 68 65 |want to |copy the|
|00005570| 20 73 6d 61 6c 6c 20 69 | 63 6f 6e 20 28 31 36 29 | small i|con (16)|
|00005580| 20 6f 72 20 6c 61 72 67 | 65 20 69 63 6f 6e 20 28 | or larg|e icon (|
|00005590| 33 32 29 2e 20 54 68 65 | 20 64 65 66 61 75 6c 74 |32). The| default|
|000055a0| 20 69 73 20 74 68 65 20 | 73 6d 61 6c 6c 20 69 63 | is the |small ic|
|000055b0| 6f 6e 20 69 66 20 79 6f | 75 20 64 6f 6e d5 74 20 |on if yo|u don.t |
|000055c0| 73 70 65 63 69 66 79 20 | 69 63 6f 6e 2d 73 69 7a |specify |icon-siz|
|000055d0| 65 2e 0d 0d 2f 2f 20 53 | 65 74 20 74 68 65 20 62 |e...// S|et the b|
|000055e0| 75 74 74 6f 6e d5 73 20 | 69 63 6f 6e 20 23 31 20 |utton.s |icon #1 |
|000055f0| 74 6f 20 74 68 65 20 53 | 69 6d 70 6c 65 54 65 78 |to the S|impleTex|
|00005600| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |t applic|ation.s |
|00005610| 33 32 2d 70 69 78 65 6c | 20 69 63 6f 6e 0d 42 75 |32-pixel| icon.Bu|
|00005620| 74 74 6f 6e 2e 49 63 6f | 6e 20 3d 20 31 2c 20 22 |tton.Ico|n = 1, "|
|00005630| 4d 61 63 20 48 44 3a 41 | 70 70 6c 69 63 61 74 69 |Mac HD:A|pplicati|
|00005640| 6f 6e 73 3a 53 69 6d 70 | 6c 65 54 65 78 74 22 2c |ons:Simp|leText",|
|00005650| 20 33 32 0d 0d 2e 49 63 | 6f 6e 41 6c 69 67 6e 0d | 32...Ic|onAlign.|
|00005660| 47 65 74 73 20 6f 72 20 | 73 65 74 73 20 74 68 65 |Gets or |sets the|
|00005670| 20 61 6c 69 67 6e 6d 65 | 6e 74 20 6f 66 20 61 6e | alignme|nt of an|
|00005680| 20 69 63 6f 6e 20 6f 6e | 20 74 68 65 20 62 75 74 | icon on| the but|
|00005690| 74 6f 6e 2e 20 54 68 65 | 20 6e 75 6d 62 65 72 73 |ton. The| numbers|
|000056a0| 20 30 20 61 6e 64 20 35 | 2d 31 32 20 63 6f 72 72 | 0 and 5|-12 corr|
|000056b0| 65 73 70 6f 6e 64 20 74 | 6f 20 74 68 65 20 39 20 |espond t|o the 9 |
|000056c0| 70 6f 73 69 74 69 6f 6e | 73 20 6f 6e 20 74 68 65 |position|s on the|
|000056d0| 20 50 6f 73 69 74 69 6f | 6e 20 67 72 69 64 20 69 | Positio|n grid i|
|000056e0| 6e 20 74 68 65 20 42 75 | 74 74 6f 6e 20 45 64 69 |n the Bu|tton Edi|
|000056f0| 74 6f 72 2e 20 28 54 68 | 65 73 65 20 76 61 6c 75 |tor. (Th|ese valu|
|00005700| 65 73 20 61 72 65 20 74 | 68 65 20 73 61 6d 65 20 |es are t|he same |
|00005710| 66 6f 72 20 74 68 65 20 | 2e 54 65 78 74 41 6c 69 |for the |.TextAli|
|00005720| 67 6e 20 70 72 6f 70 65 | 72 74 79 2c 20 65 78 63 |gn prope|rty, exc|
|00005730| 65 70 74 20 2e 49 63 6f | 6e 41 6c 69 67 6e 20 64 |ept .Ico|nAlign d|
|00005740| 6f 65 73 6e d5 74 20 75 | 73 65 20 76 61 6c 75 65 |oesn.t u|se value|
|00005750| 73 20 31 d0 34 2e 29 0d | 0d 46 6f 72 20 61 20 64 |s 1.4.).|.For a d|
|00005760| 69 61 67 72 61 6d 20 6f | 66 20 69 63 6f 6e 20 70 |iagram o|f icon p|
|00005770| 6f 73 69 74 69 6f 6e 73 | 20 61 6e 64 20 74 68 65 |ositions| and the|
|00005780| 69 72 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |ir corre|sponding|
|00005790| 20 6e 75 6d 62 65 72 73 | 2c 20 73 65 65 20 2e 49 | numbers|, see .I|
|000057a0| 63 6f 6e 41 6c 69 67 6e | 20 6f 6e 20 70 61 67 65 |conAlign| on page|
|000057b0| 20 31 35 34 20 69 6e 20 | 74 68 65 20 4f 6e 65 43 | 154 in |the OneC|
|000057c0| 6c 69 63 6b 20 41 75 74 | 68 6f 72 69 6e 67 20 47 |lick Aut|horing G|
|000057d0| 75 69 64 65 2e 0d 0d 2e | 49 6e 64 65 78 0d 52 65 |uide....|Index.Re|
|000057e0| 74 75 72 6e 73 20 74 68 | 65 20 63 6f 72 72 65 73 |turns th|e corres|
|000057f0| 70 6f 6e 64 69 6e 67 20 | 69 6e 64 65 78 20 6e 75 |ponding |index nu|
|00005800| 6d 62 65 72 20 66 6f 72 | 20 74 68 65 20 62 75 74 |mber for| the but|
|00005810| 74 6f 6e 20 77 68 65 6e | 20 74 68 65 20 62 75 74 |ton when| the but|
|00005820| 74 6f 6e 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ton is s|pecified|
|00005830| 20 62 79 20 6e 61 6d 65 | 20 28 31 20 66 6f 72 20 | by name| (1 for |
|00005840| 74 68 65 20 66 69 72 73 | 74 20 62 75 74 74 6f 6e |the firs|t button|
|00005850| 2c 20 32 20 66 6f 72 20 | 74 68 65 20 73 65 63 6f |, 2 for |the seco|
|00005860| 6e 64 2c 20 61 6e 64 20 | 73 6f 20 6f 6e 29 2e 20 |nd, and |so on). |
|00005870| 59 6f 75 20 63 61 6e 20 | 61 73 73 69 67 6e 20 61 |You can |assign a|
|00005880| 20 6e 75 6d 65 72 69 63 | 20 76 61 6c 75 65 20 74 | numeric| value t|
|00005890| 6f 20 2e 49 6e 64 65 78 | 20 74 6f 20 63 68 61 6e |o .Index| to chan|
|000058a0| 67 65 20 74 68 65 20 62 | 75 74 74 6f 6e 20 6f 72 |ge the b|utton or|
|000058b0| 64 65 72 2e 20 0d 0d 43 | 68 61 6e 67 69 6e 67 20 |der. ..C|hanging |
|000058c0| 42 75 74 74 6f 6e 2e 49 | 6e 64 65 78 20 76 69 73 |Button.I|ndex vis|
|000058d0| 69 62 6c 79 20 63 68 61 | 6e 67 65 73 20 74 68 65 |ibly cha|nges the|
|000058e0| 20 6f 72 64 65 72 20 69 | 6e 20 77 68 69 63 68 20 | order i|n which |
|000058f0| 6f 76 65 72 6c 61 70 70 | 65 64 20 62 75 74 74 6f |overlapp|ed butto|
|00005900| 6e 73 20 61 72 65 20 64 | 72 61 77 6e 2e 20 41 20 |ns are d|rawn. A |
|00005910| 62 75 74 74 6f 6e 20 77 | 69 74 68 20 61 20 68 69 |button w|ith a hi|
|00005920| 67 68 65 72 20 69 6e 64 | 65 78 20 6e 75 6d 62 65 |gher ind|ex numbe|
|00005930| 72 20 64 72 61 77 73 20 | 6f 6e 20 74 6f 70 20 6f |r draws |on top o|
|00005940| 66 20 61 20 62 75 74 74 | 6f 6e 20 77 69 74 68 20 |f a butt|on with |
|00005950| 61 20 6c 6f 77 65 72 20 | 69 6e 64 65 78 20 6e 75 |a lower |index nu|
|00005960| 6d 62 65 72 2e 0d 0d 2f | 2f 20 4d 61 6b 65 20 74 |mber.../|/ Make t|
|00005970| 68 69 73 20 62 75 74 74 | 6f 6e 20 74 68 65 20 66 |his butt|on the f|
|00005980| 69 72 73 74 20 62 75 74 | 74 6f 6e 20 64 72 61 77 |irst but|ton draw|
|00005990| 6e 20 6f 6e 20 74 68 65 | 20 70 61 6c 65 74 74 65 |n on the| palette|
|000059a0| 20 0d 2f 2f 20 41 6e 79 | 20 6f 76 65 72 6c 61 70 | .// Any| overlap|
|000059b0| 70 69 6e 67 20 62 75 74 | 74 6f 6e 73 20 61 72 65 |ping but|tons are|
|000059c0| 20 64 72 61 77 6e 20 6f | 6e 20 74 6f 70 20 6f 66 | drawn o|n top of|
|000059d0| 20 74 68 69 73 20 62 75 | 74 74 6f 6e 0d 42 75 74 | this bu|tton.But|
|000059e0| 74 6f 6e 2e 49 6e 64 65 | 78 20 3d 20 31 0d 0d 2f |ton.Inde|x = 1../|
|000059f0| 2f 20 4d 61 6b 65 20 74 | 68 69 73 20 62 75 74 74 |/ Make t|his butt|
|00005a00| 6f 6e 20 74 68 65 20 6c | 61 73 74 20 62 75 74 74 |on the l|ast butt|
|00005a10| 6f 6e 20 64 72 61 77 6e | 20 6f 6e 20 74 68 65 20 |on drawn| on the |
|00005a20| 70 61 6c 65 74 74 65 0d | 2f 2f 20 41 6e 79 20 6f |palette.|// Any o|
|00005a30| 76 65 72 6c 61 70 70 69 | 6e 67 20 62 75 74 74 6f |verlappi|ng butto|
|00005a40| 6e 73 20 61 72 65 20 64 | 72 61 77 6e 20 62 65 68 |ns are d|rawn beh|
|00005a50| 69 6e 64 20 74 68 69 73 | 20 62 75 74 74 6f 6e 0d |ind this| button.|
|00005a60| 42 75 74 74 6f 6e 2e 49 | 6e 64 65 78 20 3d 20 42 |Button.I|ndex = B|
|00005a70| 75 74 74 6f 6e 2e 43 6f | 75 6e 74 0d 0d 2e 4b 65 |utton.Co|unt...Ke|
|00005a80| 79 53 68 6f 72 74 43 75 | 74 0d 47 65 74 73 20 6f |yShortCu|t.Gets o|
|00005a90| 72 20 73 65 74 73 20 74 | 68 65 20 62 75 74 74 6f |r sets t|he butto|
|00005aa0| 6e d5 73 20 6b 65 79 62 | 6f 61 72 64 20 73 68 6f |n.s keyb|oard sho|
|00005ab0| 72 74 63 75 74 2e 20 49 | 6e 20 74 68 65 20 73 74 |rtcut. I|n the st|
|00005ac0| 72 69 6e 67 20 74 68 61 | 74 20 64 65 73 63 72 69 |ring tha|t descri|
|00005ad0| 62 65 73 20 74 68 65 20 | 6b 65 79 62 6f 61 72 64 |bes the |keyboard|
|00005ae0| 20 73 68 6f 72 74 63 75 | 74 2c 20 75 73 65 20 74 | shortcu|t, use t|
|00005af0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6b 65 79 |he follo|wing key|
|00005b00| 77 6f 72 64 73 20 74 6f | 20 64 65 73 63 72 69 62 |words to| describ|
|00005b10| 65 20 6d 6f 64 69 66 69 | 65 72 20 6b 65 79 73 2e |e modifi|er keys.|
|00005b20| 0d 0d 4b 65 79 20 20 20 | 20 20 20 20 20 20 20 20 |..Key | |
|00005b30| 20 20 20 20 4b 65 79 77 | 6f 72 64 20 69 6e 20 73 | Keyw|ord in s|
|00005b40| 68 6f 72 74 63 75 74 20 | 73 74 72 69 6e 67 0d 43 |hortcut |string.C|
|00005b50| 6f 6d 6d 61 6e 64 20 20 | 20 20 20 20 20 20 20 20 |ommand | |
|00005b60| 20 20 20 63 6d 64 2d 0d | 53 68 69 66 74 20 20 20 | cmd-.|Shift |
|00005b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b80| 73 68 69 66 74 2d 0d 4f | 70 74 69 6f 6e 20 20 20 |shift-.O|ption |
|00005b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 70 | | op|
|00005ba0| 74 2d 0d 43 6f 6e 74 72 | 6f 6c 20 20 20 20 20 20 |t-.Contr|ol |
|00005bb0| 20 20 20 20 20 20 20 20 | 20 20 63 74 6c 2d 0d 4e | | ctl-.N|
|00005bc0| 75 6d 65 72 69 63 20 6b | 65 79 70 61 64 20 20 20 |umeric k|eypad |
|00005bd0| 6e 75 6d 2d 0d 0d 46 6f | 72 20 65 78 61 6d 70 6c |num-..Fo|r exampl|
|00005be0| 65 2c 20 74 68 65 20 73 | 74 72 69 6e 67 20 d2 63 |e, the s|tring .c|
|00005bf0| 6d 64 2d 6f 70 74 2d 31 | d3 20 61 73 73 69 67 6e |md-opt-1|. assign|
|00005c00| 73 20 74 68 65 20 73 68 | 6f 72 74 63 75 74 20 43 |s the sh|ortcut C|
|00005c10| 6f 6d 6d 61 6e 64 2d 4f | 70 74 69 6f 6e 2d 31 2c |ommand-O|ption-1,|
|00005c20| 20 61 6e 64 20 74 68 65 | 20 73 74 72 69 6e 67 20 | and the| string |
|00005c30| d2 6e 75 6d 2d 37 d3 20 | 61 73 73 69 67 6e 73 20 |.num-7. |assigns |
|00005c40| 74 68 65 20 6b 65 79 62 | 6f 61 72 64 20 73 68 6f |the keyb|oard sho|
|00005c50| 72 74 63 75 74 20 74 6f | 20 74 68 65 20 37 20 6b |rtcut to| the 7 k|
|00005c60| 65 79 20 6f 6e 20 74 68 | 65 20 6e 75 6d 65 72 69 |ey on th|e numeri|
|00005c70| 63 20 6b 65 79 70 61 64 | 2e 20 53 65 74 20 74 68 |c keypad|. Set th|
|00005c80| 65 20 73 68 6f 72 74 63 | 75 74 20 74 6f 20 74 68 |e shortc|ut to th|
|00005c90| 65 20 65 6d 70 74 79 20 | 73 74 72 69 6e 67 20 28 |e empty |string (|
|00005ca0| 22 22 29 20 74 6f 20 72 | 65 6d 6f 76 65 20 74 68 |"") to r|emove th|
|00005cb0| 65 20 73 68 6f 72 74 63 | 75 74 2e 0d 0d 2f 2f 20 |e shortc|ut...// |
|00005cc0| 53 65 74 20 62 75 74 74 | 6f 6e 20 73 68 6f 72 74 |Set butt|on short|
|00005cd0| 63 75 74 20 74 6f 20 43 | 6f 6d 6d 61 6e 64 2d 53 |cut to C|ommand-S|
|00005ce0| 68 69 66 74 2d 4f 70 74 | 69 6f 6e 2d 43 6f 6e 74 |hift-Opt|ion-Cont|
|00005cf0| 72 6f 6c 2d 43 0d 42 75 | 74 74 6f 6e 2e 4b 65 79 |rol-C.Bu|tton.Key|
|00005d00| 53 68 6f 72 74 43 75 74 | 20 3d 20 22 63 6d 64 2d |ShortCut| = "cmd-|
|00005d10| 73 68 69 66 74 2d 6f 70 | 74 2d 63 74 6c 2d 63 22 |shift-op|t-ctl-c"|
|00005d20| 0d 0d 2f 2f 20 52 65 6d | 6f 76 65 20 74 68 65 20 |..// Rem|ove the |
|00005d30| 73 68 6f 72 74 63 75 74 | 20 66 72 6f 6d 20 74 68 |shortcut| from th|
|00005d40| 65 20 62 75 74 74 6f 6e | 20 6e 61 6d 65 64 20 d2 |e button| named .|
|00005d50| 4f 6c 69 76 69 61 d3 0d | 42 75 74 74 6f 6e 28 22 |Olivia..|Button("|
|00005d60| 4f 6c 69 76 69 61 22 29 | 2e 4b 65 79 53 68 6f 72 |Olivia")|.KeyShor|
|00005d70| 74 43 75 74 20 3d 20 22 | 22 0d 0d 2e 4c 65 66 74 |tCut = "|"...Left|
|00005d80| 0d 47 65 74 73 20 6f 72 | 20 73 65 74 73 20 74 68 |.Gets or| sets th|
|00005d90| 65 20 62 75 74 74 6f 6e | d5 73 20 68 6f 72 69 7a |e button|.s horiz|
|00005da0| 6f 6e 74 61 6c 20 6c 6f | 63 61 74 69 6f 6e 20 6f |ontal lo|cation o|
|00005db0| 6e 20 74 68 65 20 70 61 | 6c 65 74 74 65 2e 20 54 |n the pa|lette. T|
|00005dc0| 68 65 20 6c 65 66 74 20 | 73 69 64 65 20 6f 66 20 |he left |side of |
|00005dd0| 74 68 65 20 70 61 6c 65 | 74 74 65 20 69 73 20 63 |the pale|tte is c|
|00005de0| 6f 6f 72 64 69 6e 61 74 | 65 20 30 2e 0d 0d 2f 2f |oordinat|e 0...//|
|00005df0| 20 4d 6f 76 65 20 74 68 | 65 20 62 75 74 74 6f 6e | Move th|e button|
|00005e00| 20 74 6f 20 74 68 65 20 | 6c 65 66 74 20 65 64 67 | to the |left edg|
|00005e10| 65 20 6f 66 20 74 68 65 | 20 70 61 6c 65 74 74 65 |e of the| palette|
|00005e20| 0d 42 75 74 74 6f 6e 2e | 4c 65 66 74 20 3d 20 30 |.Button.|Left = 0|
|00005e30| 0d 0d 2e 4c 69 73 74 0d | 47 65 74 73 20 61 20 6c |...List.|Gets a l|
|00005e40| 69 73 74 20 6f 66 20 74 | 68 65 20 6e 61 6d 65 73 |ist of t|he names|
|00005e50| 20 6f 66 20 61 6c 6c 20 | 74 68 65 20 62 75 74 74 | of all |the butt|
|00005e60| 6f 6e 73 20 6f 6e 20 74 | 68 65 20 70 61 6c 65 74 |ons on t|he palet|
|00005e70| 74 65 2e 20 53 70 65 63 | 69 66 79 20 61 20 70 61 |te. Spec|ify a pa|
|00005e80| 6c 65 74 74 65 20 6f 62 | 6a 65 63 74 20 74 6f 20 |lette ob|ject to |
|00005e90| 67 65 74 20 61 20 6c 69 | 73 74 20 6f 66 20 62 75 |get a li|st of bu|
|00005ea0| 74 74 6f 6e 20 6e 61 6d | 65 73 20 66 72 6f 6d 20 |tton nam|es from |
|00005eb0| 61 6e 6f 74 68 65 72 20 | 70 61 6c 65 74 74 65 2e |another |palette.|
|00005ec0| 20 4e 6f 20 62 75 74 74 | 6f 6e 20 73 70 65 63 69 | No butt|on speci|
|00005ed0| 66 69 65 72 20 69 73 20 | 6e 65 63 65 73 73 61 72 |fier is |necessar|
|00005ee0| 79 2e 20 54 68 69 73 20 | 70 72 6f 70 65 72 74 79 |y. This |property|
|00005ef0| 20 69 73 20 72 65 61 64 | 2d 6f 6e 6c 79 2e 0d 0d | is read|-only...|
|00005f00| 2f 2f 20 44 69 73 70 6c | 61 79 20 61 20 6c 69 73 |// Displ|ay a lis|
|00005f10| 74 20 62 6f 78 20 63 6f | 6e 74 61 69 6e 69 6e 67 |t box co|ntaining|
|00005f20| 20 74 68 65 20 6e 61 6d | 65 73 20 61 6c 6c 20 74 | the nam|es all t|
|00005f30| 68 65 20 62 75 74 74 6f | 6e 73 20 6f 6e 20 74 68 |he butto|ns on th|
|00005f40| 65 20 70 61 6c 65 74 74 | 65 20 0d 56 61 72 69 61 |e palett|e .Varia|
|00005f50| 62 6c 65 20 74 68 65 53 | 65 6c 65 63 74 69 6f 6e |ble theS|election|
|00005f60| 0d 74 68 65 53 65 6c 65 | 63 74 69 6f 6e 20 3d 20 |.theSele|ction = |
|00005f70| 41 73 6b 4c 69 73 74 20 | 42 75 74 74 6f 6e 2e 4c |AskList |Button.L|
|00005f80| 69 73 74 0d 0d 2f 2f 20 | 44 69 73 70 6c 61 79 20 |ist..// |Display |
|00005f90| 61 20 6c 69 73 74 20 62 | 6f 78 20 63 6f 6e 74 61 |a list b|ox conta|
|00005fa0| 69 6e 69 6e 67 20 74 68 | 65 20 6e 61 6d 65 73 20 |ining th|e names |
|00005fb0| 6f 66 20 61 6c 6c 20 74 | 68 65 20 62 75 74 74 6f |of all t|he butto|
|00005fc0| 6e 73 20 6f 6e 20 74 68 | 65 20 70 61 6c 65 74 74 |ns on th|e palett|
|00005fd0| 65 20 6e 61 6d 65 64 20 | 22 43 6f 6f 6c 20 54 6f |e named |"Cool To|
|00005fe0| 6f 6c 73 22 0d 56 61 72 | 69 61 62 6c 65 20 74 68 |ols".Var|iable th|
|00005ff0| 65 53 65 6c 65 63 74 69 | 6f 6e 0d 74 68 65 53 65 |eSelecti|on.theSe|
|00006000| 6c 65 63 74 69 6f 6e 20 | 3d 20 41 73 6b 4c 69 73 |lection |= AskLis|
|00006010| 74 20 50 61 6c 65 74 74 | 65 28 22 43 6f 6f 6c 20 |t Palett|e("Cool |
|00006020| 54 6f 6f 6c 73 22 29 2e | 42 75 74 74 6f 6e 2e 4c |Tools").|Button.L|
|00006030| 69 73 74 0d 0d 2e 4c 6f | 63 61 74 69 6f 6e 0d 43 |ist...Lo|cation.C|
|00006040| 68 61 6e 67 65 73 20 74 | 68 65 20 62 75 74 74 6f |hanges t|he butto|
|00006050| 6e d5 73 20 6c 6f 63 61 | 74 69 6f 6e 20 6f 6e 20 |n.s loca|tion on |
|00006060| 74 68 65 20 70 61 6c 65 | 74 74 65 2e 20 54 68 65 |the pale|tte. The|
|00006070| 20 2e 4c 6f 63 61 74 69 | 6f 6e 20 70 72 6f 70 65 | .Locati|on prope|
|00006080| 72 74 79 20 72 65 71 75 | 69 72 65 73 20 74 77 6f |rty requ|ires two|
|00006090| 20 70 61 72 61 6d 65 74 | 65 72 73 20 28 6c 65 66 | paramet|ers (lef|
|000060a0| 74 20 61 6e 64 20 74 6f | 70 29 20 61 6e 64 20 69 |t and to|p) and i|
|000060b0| 73 20 77 72 69 74 65 2d | 6f 6e 6c 79 2e 20 55 73 |s write-|only. Us|
|000060c0| 69 6e 67 20 2e 4c 6f 63 | 61 74 69 6f 6e 20 69 73 |ing .Loc|ation is|
|000060d0| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 75 73 69 | the sam|e as usi|
|000060e0| 6e 67 20 2e 4c 65 66 74 | 20 61 6e 64 20 2e 54 6f |ng .Left| and .To|
|000060f0| 70 2c 20 65 78 63 65 70 | 74 20 69 74 20 72 65 64 |p, excep|t it red|
|00006100| 72 61 77 73 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |raws the| button |
|00006110| 6f 6e 6c 79 20 6f 6e 63 | 65 20 69 6e 73 74 65 61 |only onc|e instea|
|00006120| 64 20 6f 66 20 74 77 69 | 63 65 2e 0d 0d 2f 2f 20 |d of twi|ce...// |
|00006130| 4d 6f 76 65 20 74 68 65 | 20 51 75 69 63 6b 65 6e |Move the| Quicken|
|00006140| 20 62 75 74 74 6f 6e 20 | 74 6f 20 74 68 65 20 75 | button |to the u|
|00006150| 70 70 65 72 2d 6c 65 66 | 74 20 63 6f 72 6e 65 72 |pper-lef|t corner|
|00006160| 20 6f 66 20 74 68 65 20 | 70 61 6c 65 74 74 65 0d | of the |palette.|
|00006170| 2f 2f 20 4c 65 61 76 65 | 20 61 20 32 2d 70 69 78 |// Leave| a 2-pix|
|00006180| 65 6c 20 6d 61 72 67 69 | 6e 20 62 65 74 77 65 65 |el margi|n betwee|
|00006190| 6e 20 74 68 65 20 65 64 | 67 65 73 20 6f 66 20 74 |n the ed|ges of t|
|000061a0| 68 65 20 62 75 74 74 6f | 6e 20 61 6e 64 20 74 68 |he butto|n and th|
|000061b0| 65 20 70 61 6c 65 74 74 | 65 0d 42 75 74 74 6f 6e |e palett|e.Button|
|000061c0| 28 22 51 75 69 63 6b 65 | 6e 22 29 2e 4c 6f 63 61 |("Quicke|n").Loca|
|000061d0| 74 69 6f 6e 20 3d 20 32 | 2c 20 32 0d 0d 2e 4d 6f |tion = 2|, 2...Mo|
|000061e0| 64 65 0d 47 65 74 73 20 | 6f 72 20 73 65 74 73 20 |de.Gets |or sets |
|000061f0| 74 68 65 20 61 70 70 65 | 61 72 61 6e 63 65 20 6f |the appe|arance o|
|00006200| 66 20 74 68 65 20 62 75 | 74 74 6f 6e 2e 20 2e 4d |f the bu|tton. .M|
|00006210| 6f 64 65 20 69 73 20 61 | 20 6e 75 6d 62 65 72 20 |ode is a| number |
|00006220| 30 d0 37 20 74 68 61 74 | 20 63 6f 72 72 65 73 70 |0.7 that| corresp|
|00006230| 6f 6e 64 73 20 74 6f 20 | 61 20 73 65 74 74 69 6e |onds to |a settin|
|00006240| 67 20 69 6e 20 74 68 65 | 20 41 70 70 65 61 72 61 |g in the| Appeara|
|00006250| 6e 63 65 20 70 6f 70 2d | 75 70 20 6d 65 6e 75 20 |nce pop-|up menu |
|00006260| 69 6e 20 74 68 65 20 42 | 75 74 74 6f 6e 20 45 64 |in the B|utton Ed|
|00006270| 69 74 6f 72 2e 20 41 20 | 62 75 74 74 6f 6e d5 73 |itor. A |button.s|
|00006280| 20 64 65 66 61 75 6c 74 | 20 61 70 70 65 61 72 61 | default| appeara|
|00006290| 6e 63 65 20 69 73 20 4e | 6f 72 6d 61 6c 20 28 30 |nce is N|ormal (0|
|000062a0| 29 2e 0d 0d 30 3a 20 4e | 6f 72 6d 61 6c 0d 31 3a |)...0: N|ormal.1:|
|000062b0| 20 50 75 73 68 65 64 0d | 32 3a 20 44 69 73 61 62 | Pushed.|2: Disab|
|000062c0| 6c 65 64 0d 33 3a 20 49 | 6e 76 65 72 74 65 64 0d |led.3: I|nverted.|
|000062d0| 34 3a 20 4c 69 67 68 74 | 65 72 0d 35 3a 20 44 61 |4: Light|er.5: Da|
|000062e0| 72 6b 65 72 0d 36 3a 20 | 50 75 73 68 65 64 2f 44 |rker.6: |Pushed/D|
|000062f0| 61 72 6b 65 72 0d 37 3a | 20 44 69 73 61 62 6c 65 |arker.7:| Disable|
|00006300| 64 2f 4c 69 67 68 74 65 | 72 0d 0d 2f 2f 20 53 65 |d/Lighte|r..// Se|
|00006310| 74 20 74 68 65 20 62 75 | 74 74 6f 6e d5 73 20 61 |t the bu|tton.s a|
|00006320| 70 70 65 61 72 61 6e 63 | 65 20 61 63 63 6f 72 64 |ppearanc|e accord|
|00006330| 69 6e 67 20 74 6f 20 74 | 68 65 20 61 70 70 65 61 |ing to t|he appea|
|00006340| 72 61 6e 63 65 20 6f 66 | 20 61 20 6d 65 6e 75 20 |rance of| a menu |
|00006350| 63 6f 6d 6d 61 6e 64 0d | 2f 2f 20 49 66 20 42 6f |command.|// If Bo|
|00006360| 6c 64 20 69 73 20 64 69 | 6d 6d 65 64 20 69 6e 20 |ld is di|mmed in |
|00006370| 74 68 65 20 53 74 79 6c | 65 20 6d 65 6e 75 2c 20 |the Styl|e menu, |
|00006380| 74 68 65 6e 20 6d 61 6b | 65 20 74 68 65 20 62 75 |then mak|e the bu|
|00006390| 74 74 6f 6e 20 6c 69 67 | 68 74 65 72 20 61 6e 64 |tton lig|hter and|
|000063a0| 20 64 69 73 61 62 6c 65 | 64 0d 49 66 20 4e 4f 54 | disable|d.If NOT|
|000063b0| 20 4d 65 6e 75 28 22 53 | 74 79 6c 65 22 2c 20 22 | Menu("S|tyle", "|
|000063c0| 42 6f 6c 64 22 29 2e 45 | 6e 61 62 6c 65 64 20 0d |Bold").E|nabled .|
|000063d0| 20 20 20 20 20 42 75 74 | 74 6f 6e 2e 4d 6f 64 65 | But|ton.Mode|
|000063e0| 20 3d 20 37 0d 2f 2f 20 | 49 66 20 42 6f 6c 64 20 | = 7.// |If Bold |
|000063f0| 69 73 20 63 68 65 63 6b | 65 64 2c 20 6d 61 6b 65 |is check|ed, make|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.